lighthouse-pulse/src/state/config.rs

18 lines
365 B
Rust
Raw Normal View History

2018-07-10 09:08:36 +00:00
pub struct Config {
2018-07-11 08:16:16 +00:00
pub attester_count: u64,
2018-07-13 05:34:05 +00:00
pub max_validators: u64,
pub shard_count: u16,
pub notaries_per_crosslink: u16
2018-07-10 09:08:36 +00:00
}
impl Config {
pub fn standard() -> Self {
Self {
attester_count: 32,
2018-07-13 05:34:05 +00:00
max_validators: 2u64.pow(24),
shard_count: 20,
notaries_per_crosslink: 100
2018-07-10 09:08:36 +00:00
}
}
}