forked from 0xPolygon/polygon-edge
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ibft] Fix validator build block when syncing (#313)
# Description Validator nodes build blocks during sync, which makes it slow to sync and full of error logs. This PR fixes it to only start building blocks when syncing is done. # Changes include - [x] Bugfix (non-breaking change that solves an issue) ## Testing - [x] I have tested this code with the official test suite - [x] I have tested this code manually ### Manual tests 1. start up a 4-validators network. 2. stop a validator for about 2-3 minutes. 3. restart the stopped validator and check its logs. On current branch, validator will print out "sequence started" only when it catch up to the latest height. On the target branch, validator will print out "sequence started" every time a new block arrives, and try to build an outdated block every turn.
- Loading branch information
1 parent
4befcc7
commit 3b1d596
Showing
4 changed files
with
19 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters