-
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
[1.0] Harden ordered_diff #698
Conversation
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.
Also clean up static_assert
s that check the max representable value of SizeType
is greater than or equal to config::max_finalizers - 1
or config::max_proposers - 1
.
Add size_type trait to template. Add FC_ASSERT outside of loop for source and target size range. Add back in approprate debug asserts and add some new ones. Replace invalid comment with correct one.
libraries/chain/include/eosio/chain/finality/finalizer_policy.hpp
Outdated
Show resolved
Hide resolved
Note:start |
Note:start |
ordered_diff
is used to process the finalizer and proposer policy diffs from block header extensionfinality_extension
. Since thefinality_extension
, is provided to a node to validate, validate the diff duringapply_diff
.Related to #691