mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 22:08:30 +00:00
Add params to config
This commit is contained in:
@@ -1,13 +1,17 @@
|
|||||||
pub struct Config {
|
pub struct Config {
|
||||||
pub attester_count: u64,
|
pub attester_count: u64,
|
||||||
pub max_validators: u64
|
pub max_validators: u64,
|
||||||
|
pub shard_count: u16,
|
||||||
|
pub notaries_per_crosslink: u16
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Config {
|
impl Config {
|
||||||
pub fn standard() -> Self {
|
pub fn standard() -> Self {
|
||||||
Self {
|
Self {
|
||||||
attester_count: 32,
|
attester_count: 32,
|
||||||
max_validators: 2u64.pow(24)
|
max_validators: 2u64.pow(24),
|
||||||
|
shard_count: 20,
|
||||||
|
notaries_per_crosslink: 100
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user