-
Notifications
You must be signed in to change notification settings - Fork 300
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blockchain: Validate allowed revokes in blk contxt.
This moves the test for validating the revocations in the block are actually eligible to be revoked per the results of the ticket lottery into the checkBlockContext function where it more naturally belongs since it is only dependent on the block and its contextual position within the chain. While here, it also refactors the check into a separate function named checkAllowedRevocations to improve readability. Also, since this was the final check in the CheckBlockStakeSanity function, that entire function has been removed along with its call site.
- Loading branch information
Showing
1 changed file
with
34 additions
and
69 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