Skip to content

Commit

Permalink
unify era duration in runtime api impl
Browse files Browse the repository at this point in the history
  • Loading branch information
kianenigma committed Oct 1, 2024
1 parent f206b08 commit a5d3ed3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion relay/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1922,7 +1922,7 @@ impl Runtime {
};

// We assume un-delayed 6h eras.
let era_duration = 6 * 60 * 60 * 1000;
let era_duration = 6 * (HOURS as Moment) * MILLISECS_PER_BLOCK;
let next_mint = <Self as pallet_staking::Config>::EraPayout::era_payout(
staked,
stake_able_issuance,
Expand Down
2 changes: 1 addition & 1 deletion relay/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2155,7 +2155,7 @@ impl Runtime {
ideal_staking_rate
};

// we assume un-delayed 24h eras.
// We assume un-delayed 24h eras.
let era_duration = 24 * (HOURS as Moment) * MILLISECS_PER_BLOCK;
let next_mint = <Self as pallet_staking::Config>::EraPayout::era_payout(
staked,
Expand Down

0 comments on commit a5d3ed3

Please sign in to comment.