mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-19 22:08:30 +00:00
Allow for customizable recent genesis window
This commit is contained in:
@@ -88,9 +88,15 @@ where
|
||||
crit!(log, "No mainnet beacon chain startup specification.");
|
||||
return Err("Mainnet is not yet specified. We're working on it.".into());
|
||||
}
|
||||
BeaconChainStartMethod::RecentGenesis { validator_count } => {
|
||||
BeaconChainBuilder::recent_genesis(*validator_count, spec.clone(), log.clone())
|
||||
}
|
||||
BeaconChainStartMethod::RecentGenesis {
|
||||
validator_count,
|
||||
minutes,
|
||||
} => BeaconChainBuilder::recent_genesis(
|
||||
*validator_count,
|
||||
*minutes,
|
||||
spec.clone(),
|
||||
log.clone(),
|
||||
),
|
||||
BeaconChainStartMethod::Generated {
|
||||
validator_count,
|
||||
genesis_time,
|
||||
|
||||
Reference in New Issue
Block a user