-
Notifications
You must be signed in to change notification settings - Fork 115
runtime: Update the chain constants. #1279
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -296,8 +296,8 @@ parameter_types! { | |
|
|
||
| parameter_types! { | ||
| pub const SessionsPerEra: sp_staking::SessionIndex = 6; | ||
| pub const BondingDuration: pallet_staking::EraIndex = 24; | ||
| pub const SlashDeferDuration: pallet_staking::EraIndex = 6; // 1/4 the bonding duration. | ||
| pub const BondingDuration: pallet_staking::EraIndex = BONDING_DURATION; | ||
| pub const SlashDeferDuration: pallet_staking::EraIndex = BONDING_DURATION - 1; // 'slightly less' than the bonding duration. | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we ever (mistakenly) set BONDING_DURATION to 0 we might get problems (compiler would catch attempting to set a negative number). So maybe setting
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The compiler prevents it with the |
||
| pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE; | ||
| pub const MaxNominatorRewardedPerValidator: u32 = 64; | ||
| pub const ElectionLookahead: BlockNumber = EPOCH_DURATION_IN_BLOCKS / 4; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where did 84 come from? Was it just some default value?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.