diff --git a/beacon_chain/nimbus_beacon_node.nim b/beacon_chain/nimbus_beacon_node.nim index 2c0723970..6977f9d46 100644 --- a/beacon_chain/nimbus_beacon_node.nim +++ b/beacon_chain/nimbus_beacon_node.nim @@ -1200,7 +1200,8 @@ programMain: config.runtimePreset = metadata.runtimePreset if config.cmd == noCommand: - config.bootstrapNodes.add metadata.bootstrapNodes + for node in mainnetMetadata.bootstrapNodes: + config.bootstrapNodes.add node if metadata.genesisData.len > 0: genesisStateContents = newClone metadata.genesisData @@ -1226,20 +1227,23 @@ programMain: else: config.runtimePreset = defaultRuntimePreset when const_preset == "mainnet": - # 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 - config.depositContractDeployedAt = - some mainnetMetadata.depositContractDeployedAt + if config.cmd == noCommand: + # 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 + config.depositContractDeployedAt = + some mainnetMetadata.depositContractDeployedAt - config.bootstrapNodes.add mainnetMetadata.bootstrapNodes - genesisStateContents = newClone mainnetMetadata.genesisData - genesisDepositsSnapshotContents = newClone mainnetMetadata.genesisDepositsSnapshot - eth1Network = some mainnet + for node in mainnetMetadata.bootstrapNodes: + config.bootstrapNodes.add node + + genesisStateContents = newClone mainnetMetadata.genesisData + genesisDepositsSnapshotContents = newClone mainnetMetadata.genesisDepositsSnapshot + eth1Network = some mainnet # Single RNG instance for the application - will be seeded on construction # and avoid using system resources (such as urandom) after that @@ -1515,3 +1519,4 @@ programMain: of RecordCmd.print: echo $config.recordPrint + diff --git a/vendor/nim-libp2p b/vendor/nim-libp2p index 5c2a54bdd..b4738d723 160000 --- a/vendor/nim-libp2p +++ b/vendor/nim-libp2p @@ -1 +1 @@ -Subproject commit 5c2a54bdd9fc4f9279cba41d2ca5635842ee9446 +Subproject commit b4738d723ceefa3007c7d8f16d17755a661ee50b