Change genesis fork for testnets (#750)

* Change genesis fork for testnets

* Fix genesis fork in lcli
This commit is contained in:
Paul Hauner
2020-01-06 17:30:08 +11:00
committed by GitHub
parent 2dddbed7ce
commit b0c8b2b700
3 changed files with 22 additions and 3 deletions

View File

@@ -357,6 +357,13 @@ fn init_new_client<E: EthSpec>(
let spec = &mut eth2_config.spec;
// For now, assume that all networks will use the lighthouse genesis fork.
spec.genesis_fork = Fork {
previous_version: [0, 0, 0, 0],
current_version: [1, 3, 3, 7],
epoch: Epoch::new(0),
};
client_config.eth1.deposit_contract_address =
format!("{:?}", eth2_testnet_config.deposit_contract_address()?);
client_config.eth1.deposit_contract_deploy_block =