-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2081: Expand Deploy Acceptor r=darthsiroftardis a=darthsiroftardis Co-authored-by: Ed Hastings <ed@casperlabs.io> CHANGELOG: - Expanded the checks the `DeployAcceptor` makes on a single `Deploy` - Account related checks 1. Checks if the `AccountHashes` associated with the `Deploy` are valid associated keys 2. Checks if the `Weight` of the `AccountHashes` meet the threshold to perform a deployment 3. Checks if the balance of the `Account` in the case of a `Deploy` received by from a `Client` is sufficient - ExecutableDeployItem 1. Checks if the ExecutableDeployItem present in the session or payment fields are valid and present in the case of stored contracts and contract packages - Moved the cryptographic validity check of a `Deploy` to be the last step once all other prerequisites are met. - Expanded the test suite to cover the newly added checks Closes #2085 Co-authored-by: Karan Dhareshwar <karan@casperlabs.io>
- Loading branch information
Showing
13 changed files
with
2,376 additions
and
336 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
Oops, something went wrong.