2018-07-16 01:56:29 +00:00
|
|
|
use super::utils::types::U256;
|
|
|
|
|
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,
|
2018-07-16 01:56:29 +00:00
|
|
|
pub notaries_per_crosslink: u16,
|
|
|
|
pub default_balance: U256,
|
|
|
|
pub eject_balance: U256
|
|
|
|
|
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,
|
2018-07-16 01:56:29 +00:00
|
|
|
notaries_per_crosslink: 100,
|
|
|
|
default_balance: U256::from(32000),
|
|
|
|
eject_balance: U256::from(16000)
|
2018-07-10 09:08:36 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|