-
Notifications
You must be signed in to change notification settings - Fork 221
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
fix: block sync validation #3236
fix: block sync validation #3236
Conversation
Adding a |
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.
utAck - these tests are badly needed and I agree that we need the added checks in block sync.
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.
Nice. utACK
Consolidate validation functions Add validation tests
071cb97
166798f
to
071cb97
Compare
Description --- This fixes the block sync block body validation to validate the correct items This consolidates all the syncing helper functions This adds in unit tests for the validators Motivation and Context --- Block sync needs to validate all the required steps. This also consolidates all the possible validation functions to remove duplicated pieces of code between the validators so we use a single piece to test a specific consensus item. How Has This Been Tested? --- Synced a node up to the tip height 22014. Added new unit tests. Ran all integration and unit tests.
Description
This fixes the block sync block body validation to validate the correct items
This consolidates all the syncing helper functions
This adds in unit tests for the validators
Motivation and Context
Block sync needs to validate all the required steps. This also consolidates all the possible validation functions to remove duplicated pieces of code between the validators so we use a single piece to test a specific consensus item.
How Has This Been Tested?
Synced a node up to the tip height 22014.
Added new unit tests.
Ran all integration and unit tests.