Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(base_layer): validate acceptance window expiration on dan layer (#…
…4251) Description --- New validation step on contract acceptances (and contract update proposal acceptances) that: * Retrieve the mined block height of the corresponding constitution/proposal * Retrieve the specified acceptance window (as relative blocks) from the constitution/proposal * Checks that the current tip height has not yet passed the sum of the two Motivation and Context --- The base layer need to verify that an acceptance (both constitution or proposal one) is inside the allowed acceptance window, specified as relative blocks in the constitution (or proposal). How Has This Been Tested? --- New unit tests to replicate the expiration error
- Loading branch information
Showing
6 changed files
with
331 additions
and
78 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
Oops, something went wrong.