add fast-epoch feature

This commit is contained in:
akildemir
2024-05-05 11:49:37 +03:00
parent 3ed6bd3b76
commit 1d5a53dad4
9 changed files with 20 additions and 16 deletions

View File

@@ -42,4 +42,5 @@ std = [
"sp-std/std"
]
fast-epoch = []
default = ["std"]

View File

@@ -19,7 +19,11 @@ use serai_primitives::*;
use validator_sets_primitives::ValidatorSet;
// amount of blocks in 30 days for 6s per block.
pub const BLOCKS_PER_MONTH: u32 = 10 * 60 * 24 * 30;
#[cfg(not(feature = "fast-epoch"))]
pub const GENESIS_PERIOD_BLOCKS: u32 = 10 * 60 * 24 * 30;
#[cfg(feature = "fast-epoch")]
pub const GENESIS_PERIOD_BLOCKS: u32 = 25;
/// 180 days of blocks
pub const GENESIS_SRI_TRICKLE_FEED: u64 = 10 * 60 * 24 * 180;