-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] ACN registration start up extension #689
[WIP] ACN registration start up extension #689
Conversation
When you send a message into the outbox, it will be automatically routed to the connection if you set |
# TODO: update tendermint config here | ||
# use ABCI connection to send info to tendermint server | ||
# - implement `update_validators` endpoint on server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still need to implement handling of messages the agent receives, not sure where yet as I have not looked into it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good progress!
self.context.logger.error(f"Failed processing tendermint response from {address}") | ||
|
||
# when all information is collected, update and restart tendermint | ||
if not self.registered_addresses.difference(self.collected): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do guard clause instead, so return if condition not met to avoid nesting
Proposed changes
First draft on extending the registration skill with the request for Tendermint configuration sharing via the ACN.
Questions:
Also I realize refactoring and putting things in other places might be a good idea. I will not do that until it is fully functional, implementing it all in one place is easier. Primarily looking for feedback on the message flow at this stage.
Fixes
If it fixes a bug or resolves a feature request, be sure to link to that issue.
Types of changes
What types of changes does your code introduce? (A breaking change is a fix or feature that would cause existing functionality and APIs to not work as expected.)
Put an
x
in the box that appliesChecklist
Put an
x
in the boxes that apply.main
branch (left side). Also you should start your branch off ourmain
.Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...