-
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: Max revocations in block sanity.
This moves the check for validating that the number of revocations does not exceed the maximum allowed to the checkBlockSanity function where it more naturally belongs since it does not require access to any previous chain context. It should be noted that this check previously used math.MaxUint8 and was rather implicitly limited by the fact the header uses a uint8 for the field, so this makes the requirement more explicit by defining a constant.
- Loading branch information
Showing
1 changed file
with
13 additions
and
10 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