Fix minor bugs whilst testing

This commit is contained in:
Paul Hauner
2019-11-25 14:52:09 +11:00
parent 73572c32d4
commit 713c0a8c10
6 changed files with 59 additions and 32 deletions

View File

@@ -268,7 +268,6 @@ fn process_testnet_subcommand(
spec.max_effective_balance = 3_200_000_000;
spec.ejection_balance = 1_600_000_000;
spec.effective_balance_increment = 100_000_000;
spec.min_genesis_time = 0;
spec.genesis_fork = Fork {
previous_version: [0; 4],
current_version: [0, 0, 0, 42],
@@ -276,11 +275,19 @@ fn process_testnet_subcommand(
};
client_config.eth1.deposit_contract_address =
format!("{}", eth2_testnet_dir.deposit_contract_address()?);
format!("{:?}", eth2_testnet_dir.deposit_contract_address()?);
client_config.eth1.deposit_contract_deploy_block =
eth2_testnet_dir.deposit_contract_deploy_block;
spec.min_genesis_time = eth2_testnet_dir.min_genesis_time;
// Note: these constants _should_ only be used during genesis to determine the genesis
// time. This allows the testnet to start shortly after the time + validator count
// conditions are satisified, not 1-2 days.
spec.seconds_per_day = 60;
client_config.eth1.follow_distance = 16;
client_config.dummy_eth1_backend = false;
client_config.sync_eth1_chain = true;
builder.set_genesis(ClientGenesis::DepositContract)
}