lighthouse-pulse/lighthouse/state/chain_config.rs
2018-09-21 11:14:28 +10:00

18 lines
374 B
Rust

pub struct ChainConfig {
pub cycle_length: u8,
pub shard_count: u16,
pub min_committee_size: u64,
pub genesis_time: u64,
}
impl ChainConfig {
pub fn standard() -> Self {
Self {
cycle_length: 8,
shard_count: 1024,
min_committee_size: 128,
genesis_time: 1537488655, // arbitrary
}
}
}