-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEATURE: Efficiency Refactoring and Slot Selection for Staking Contra…
…cts (#321) * uses dictionaries for approved and staked * update proposed getter * added panic for approved nodes not in ID table and name changes * adds movesPending list and candidate node list * adds tests for candidate list * add unstaking request event and candidate utility function * role specific candidate lists and limits * add candidate remove test * pr comments and update staking contract: * Adds slot limits and random slot selection using candidate node list (#328) * merge from pending moves * add preconditions and transactions * add new staking changes * add tests for slot selection * get tests passing with merged changes * add slot over limit test * more comments and clearer conditionals * remove test dependency workarounds * update proposed Node IDs and add event * iterate through pending list and update dependencies * make ci * remove upgrade transaction * remove removeNode * add updates to role counts * update dependencies * make ci * include approved access nodes in proposed node IDs * PR comments
- Loading branch information
1 parent
732f378
commit 276863c
Showing
38 changed files
with
2,613 additions
and
1,862 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
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
Large diffs are not rendered by default.
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
Oops, something went wrong.