-
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.
feat(core): new output features for changes in contracts (#4169)
Description --- * New output features for all the new types representing contract changes, as subfields of the existing `SidechainFeatures` struct. * Implement consensus encoding/decoding for the new types. * Updated all the required gRPC specifications and the related conversions. * New type `CommitteeSignatures` to wrap a list of signatures, in a similar fashion to the existing `CommitteeMembers`. Motivation and Context --- We need a way to represent, in UTXO features, all the information needed to specify changes in a contract: * `ContractUpdateProposal`: specifies the new proposed constitution. * `ContractUpdateProposalAcceptance`: acceptance, by a validator node, of a contract update proposal. * `ContractAmendment`: ratification of a update proposal, specifying when it's going to be enforced in the base layer. How Has This Been Tested? --- * New unit tests to check consensus encoding/decoding of the new features. * The existing tests for side-chain features pass with the new types.
- Loading branch information
Showing
12 changed files
with
977 additions
and
58 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.