Unverified Commit 5dee958c authored by Gavin Wood's avatar Gavin Wood Committed by GitHub
Browse files

Fix up bonding period. (#396)

parent 79990c9e
Pipeline #50067 passed with stages
in 19 minutes and 43 seconds
...@@ -278,8 +278,10 @@ impl session::historical::Trait for Runtime { ...@@ -278,8 +278,10 @@ impl session::historical::Trait for Runtime {
} }
parameter_types! { parameter_types! {
// Six sessions in an era (24 hours).
pub const SessionsPerEra: SessionIndex = 6; pub const SessionsPerEra: SessionIndex = 6;
pub const BondingDuration: staking::EraIndex = 24 * 28; // 28 eras for unbonding (28 days).
pub const BondingDuration: staking::EraIndex = 28;
} }
impl staking::Trait for Runtime { impl staking::Trait for Runtime {
......
...@@ -1005,7 +1005,7 @@ mod tests { ...@@ -1005,7 +1005,7 @@ mod tests {
parameter_types! { parameter_types! {
pub const SessionsPerEra: sr_staking_primitives::SessionIndex = 6; pub const SessionsPerEra: sr_staking_primitives::SessionIndex = 6;
pub const BondingDuration: staking::EraIndex = 24 * 28; pub const BondingDuration: staking::EraIndex = 28;
pub const AttestationPeriod: BlockNumber = 100; pub const AttestationPeriod: BlockNumber = 100;
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment