-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Register Atoma nodes in a central microchain (#2)
* Add an `active_atoma_nodes` field to the state Keep track of which nodes the application can accept certificates from. * Add an operation to update the set of active nodes It is only available to the owners of the chain that created the application. * Test operations that update the active nodes set Check that each operation adds and removes the expected nodes from the on-chain state. * Test if only creation chain can update nodes Ensure that the contract execution fails if `Operation::UpdateNodes` is executed on a chain that's not the application's creation chain. * Test conflicting nodes in operation Ensure that it is rejected if it attempts to add and remove the same node.
- Loading branch information
Showing
7 changed files
with
329 additions
and
9 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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.