Hotfix: use the mainnet bootstrap nodes without specifying --network=mainnet explicitly
This commit is contained in:
parent
4328576e18
commit
3bdda3dd46
|
@ -1200,8 +1200,7 @@ programMain:
|
|||
config.runtimePreset = metadata.runtimePreset
|
||||
|
||||
if config.cmd == noCommand:
|
||||
for node in metadata.bootstrapNodes:
|
||||
config.bootstrapNodes.add node
|
||||
config.bootstrapNodes.add metadata.bootstrapNodes
|
||||
|
||||
if metadata.genesisData.len > 0:
|
||||
genesisStateContents = newClone metadata.genesisData
|
||||
|
@ -1223,18 +1222,21 @@ programMain:
|
|||
checkForIncompatibleOption "deposit-contract-block", depositContractDeployedAt
|
||||
config.depositContractAddress = some metadata.depositContractAddress
|
||||
config.depositContractDeployedAt = some metadata.depositContractDeployedAt
|
||||
|
||||
eth1Network = metadata.eth1Network
|
||||
else:
|
||||
config.runtimePreset = defaultRuntimePreset
|
||||
when const_preset == "mainnet":
|
||||
if config.depositContractAddress.isNone:
|
||||
# TODO Remove the ability to override the depositContractAddress
|
||||
# on the command line in favour of always requiring a custom
|
||||
# nework file. We have to do this, because any user setting
|
||||
# would conflict with the default choice of 'mainnet' as a
|
||||
# --network value.
|
||||
config.depositContractAddress =
|
||||
some mainnetMetadata.depositContractAddress
|
||||
if config.depositContractDeployedAt.isNone:
|
||||
config.depositContractDeployedAt =
|
||||
some mainnetMetadata.depositContractDeployedAt
|
||||
|
||||
config.bootstrapNodes.add mainnetMetadata.bootstrapNodes
|
||||
genesisStateContents = newClone mainnetMetadata.genesisData
|
||||
genesisDepositsSnapshotContents = newClone mainnetMetadata.genesisDepositsSnapshot
|
||||
eth1Network = some mainnet
|
||||
|
|
Loading…
Reference in New Issue