-
Notifications
You must be signed in to change notification settings - Fork 339
[blockchain] add ValidateBlock() to fullsync check #4566
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
base: master
Are you sure you want to change the base?
Conversation
|
for i, indexer := range dao.indexers { | ||
if _, ok := indexer.(BlockIndexerStateDBWriter); ok { | ||
checker = NewBlockIndexerChecker(dao, dao.validator) |
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.
why do we need to validate every block again in the indexers?
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.
re-validation should only be required for the fullsync scenario
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.
added flag to do this only for fullsync mode/check
39a4ed9
to
6544f38
Compare
|
Description
as title, so fullsync runs the same check as sync blocks from network.
Fixes #4561
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
Checklist: