-
Notifications
You must be signed in to change notification settings - Fork 10
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
Increment finalizer policy generation on each block that proposes a new finalizer policy; also log when finalizer policy changes #84
Conversation
// | ||
// These extensions either result from the execution of the previous block (in case this node | ||
// was the block producer) or were received from the network in a `signed_block`. | ||
// ------------------------------------------------------------------------------------------------- |
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.
Like those descriptions!
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.
Thanks!
// Add this new proposal to the `finalizer_policies` multimap which tracks the in-flight proposals, | ||
// increment the generation number, and log that proposal (debug level). | ||
// ------------------------------------------------------------------------------------------------ | ||
dlog("New finalizer policy proposed in block ${id}: ${pol}", |
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.
Should we log block number instead?
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.
The issue specifies that ids should be logged, which makes sense as these blocks are not final, so we may have the same block number in different forks.
Note:start |
Resolves #79.
Example of log:
Change of active policy
proposal