rename EPOCH_DURATION_IN_BLOCKS -> EPOCH_DURATION_IN_SLOTS (#2674)

This commit is contained in:
Joshy Orndorff
2021-04-12 10:40:44 -04:00
committed by GitHub
parent d1d33abdf8
commit 849b5117f9
8 changed files with 13 additions and 13 deletions
@@ -31,7 +31,7 @@ pub mod time {
pub const MILLISECS_PER_BLOCK: Moment = 6000;
pub const SLOT_DURATION: Moment = MILLISECS_PER_BLOCK;
// 30 seconds for now
pub const EPOCH_DURATION_IN_BLOCKS: BlockNumber = MINUTES / 2;
pub const EPOCH_DURATION_IN_SLOTS: BlockNumber = MINUTES / 2;
// These time units are defined in number of blocks.
pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber);
+1 -1
View File
@@ -162,7 +162,7 @@ impl<C> frame_system::offchain::SendTransactionTypes<C> for Runtime where
}
parameter_types! {
pub storage EpochDuration: u64 = EPOCH_DURATION_IN_BLOCKS as u64;
pub storage EpochDuration: u64 = EPOCH_DURATION_IN_SLOTS as u64;
pub storage ExpectedBlockTime: Moment = MILLISECS_PER_BLOCK;
}