mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-21 05:11:02 +00:00
Fix up bonding period. (#396)
This commit is contained in:
@@ -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 {
|
|||||||
|
|
||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user