fast-runtime tweak (#5201)

* These should be included in fast-runtime
This commit is contained in:
Squirrel
2022-04-25 17:23:47 +01:00
committed by GitHub
parent 5ebcf3643c
commit 35f6712c5e
3 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -38,9 +38,10 @@ pub mod currency {
/// Time and blocks.
pub mod time {
use primitives::v2::{BlockNumber, Moment};
use runtime_common::prod_or_fast;
pub const MILLISECS_PER_BLOCK: Moment = 6000;
pub const SLOT_DURATION: Moment = MILLISECS_PER_BLOCK;
pub const EPOCH_DURATION_IN_SLOTS: BlockNumber = 1 * HOURS;
pub const EPOCH_DURATION_IN_SLOTS: BlockNumber = prod_or_fast!(1 * HOURS, 1 * MINUTES);
// These time units are defined in number of blocks.
pub const MINUTES: BlockNumber = 60_000 / (MILLISECS_PER_BLOCK as BlockNumber);