forked from bosagora/agora
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The validator set add an enrollment before the cycle
The validator set should allow a node to re-enroll before the validator cycle ends. It's not for sure that an enrollment will be contained in the next new block, so the validator set must add the enrollment earlier before the cycle ends. I added the constant about the round that a node can re-enroll because unnecessary re-enrollments should be avoid. The value can be configurable. Relates bosagora#824
- Loading branch information
Showing
2 changed files
with
46 additions
and
8 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