-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reject transactions with size greater than max block size (#1852)
Closes #1777 This PR Rejects any transaction whose payload length is more than the max block size. The max block size parameter is found in the chain config, which can be updated through an upgrade. Therefore, we use the chain config from the validated state first, as the validated state is the mutable state of the node and the chain config, if present, will be the latest chain config. If the chain config is not present in the validated state, which may occur if the node has not seen an upgrade, we use the chain config from the node state. The node will automatically catch up and have an updated chain config in the validated state when building the header for the next block.
- Loading branch information
Showing
3 changed files
with
36 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