mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-07-24 20:35:41 +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);
|
||||
|
||||
Reference in New Issue
Block a user