lighthouse-pulse/lighthouse/state/chain_config.rs

16 lines
294 B
Rust
Raw Normal View History

2018-08-23 08:31:58 +00:00
pub struct ChainConfig {
2018-08-23 05:12:50 +00:00
pub cycle_length: u8,
2018-08-28 07:51:57 +00:00
pub shard_count: u16,
pub min_committee_size: u64,
2018-07-10 09:08:36 +00:00
}
2018-08-23 08:31:58 +00:00
impl ChainConfig {
2018-07-10 09:08:36 +00:00
pub fn standard() -> Self {
Self {
2018-08-23 05:12:50 +00:00
cycle_length: 8,
2018-08-28 07:51:57 +00:00
shard_count: 1024,
min_committee_size: 128,
2018-07-10 09:08:36 +00:00
}
}
}