-
Notifications
You must be signed in to change notification settings - Fork 335
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Delay nominator revocations and exits (#610)
* init * save * save * save * log::trace -> log::warn, drop errors, and fix compile errors * commit migrationss design will revert for simpler impl * minimal migration impl instead * delay leave nominators with all unit tests passing * delayed revoke_nomination with all tests passing * unit tests * split BondDuration into 4 constants and update runtimes * try green * green * rm revoke nomination TS test because it expects revocation to be immediate and it is now delayed and there is no leave candidates TS test to show how to delay * add types to moonbeam types bundle and update test instead of commenting it out * fix * fix * try fix TS test * try again * every byte counts * x * y * z * update weights * ready for review * rm unused errors * more accurate weight returned in on runtime upgrade * fix weight, one read to check if migration has run before * Update pallets/parachain-staking/src/lib.rs
- Loading branch information
Showing
18 changed files
with
1,118 additions
and
640 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# DPoS Pallet for Parachain Staking | ||
|
||
## Formatting Rules | ||
|
||
- dependencies in alphabetical order in the `Cargo.toml` and at the top of each file | ||
- prefer explicit imports to glob import syntax i.e. prefer `use::crate::{Ex1, Ex2, ..};` to `use super::*;` |
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.