-
Notifications
You must be signed in to change notification settings - Fork 989
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
height (header version) specific output PMMR root rules #3147
Conversation
f74845d
to
f5dc38e
Compare
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.
All looks good to me
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.
Looking good 👍
2f8cba4
to
708335e
Compare
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.
approved modulo suggested comment improvement
819e688
to
2d4ca32
Compare
Will merge once CI passes. |
This PR introduces the necessary consensus rule change to support "enable faster sync" mimblewimble/grin-rfcs#29.
HF2 will change the meaning of the
output_root
field on block headers.output_root
is simply to root of the output PMMR.output_root
is a combined root of both the output PMMR and the associated "bitmap accumulator" representation of the PMMRleafset
.This PR introduces the following changes -
output_root
rules (base logic on validated header version)pipe::validate_header()
now explicitly validates the header version for the given block heightuser_testing
)user_testing
andautomated_testing
to exercise HF rules in testsuser_testing