mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-20 05:51:02 +00:00
rename EPOCH_DURATION_IN_BLOCKS -> EPOCH_DURATION_IN_SLOTS (#2674)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user