Work around a strange codegen issue to fix local sim in CI; Bump LibP2P

This commit is contained in:
Zahary Karadjov 2020-12-01 13:35:55 +02:00 committed by zah
parent 3bdda3dd46
commit 38f7558e50
2 changed files with 20 additions and 15 deletions

View File

@ -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,6 +1227,7 @@ programMain:
else:
config.runtimePreset = defaultRuntimePreset
when const_preset == "mainnet":
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
@ -1236,7 +1238,9 @@ programMain:
config.depositContractDeployedAt =
some mainnetMetadata.depositContractDeployedAt
config.bootstrapNodes.add mainnetMetadata.bootstrapNodes
for node in mainnetMetadata.bootstrapNodes:
config.bootstrapNodes.add node
genesisStateContents = newClone mainnetMetadata.genesisData
genesisDepositsSnapshotContents = newClone mainnetMetadata.genesisDepositsSnapshot
eth1Network = some mainnet
@ -1515,3 +1519,4 @@ programMain:
of RecordCmd.print:
echo $config.recordPrint

2
vendor/nim-libp2p vendored

@ -1 +1 @@
Subproject commit 5c2a54bdd9fc4f9279cba41d2ca5635842ee9446
Subproject commit b4738d723ceefa3007c7d8f16d17755a661ee50b