Implement the outputBootstrapNodes option (taken from the interop branch)
This commit is contained in:
parent
b56c96a4fd
commit
2bbe2cb23c
|
@ -912,6 +912,15 @@ when isMainModule:
|
|||
Json.saveFile(config.outputNetworkMetadata.string, testnetMetadata, pretty = true)
|
||||
echo "Wrote ", config.outputNetworkMetadata.string
|
||||
|
||||
let bootstrapFile = config.outputBootstrapNodes.string
|
||||
if bootstrapFile.len > 0:
|
||||
let bootstrapAddrLine = when networkBackend == libp2pBackend:
|
||||
$bootstrapAddress.addresses[0] & "/p2p/" & bootstrapAddress.peer.pretty
|
||||
else:
|
||||
$bootstrapAddress
|
||||
writeFile(bootstrapFile, bootstrapAddrLine)
|
||||
echo "Wrote ", bootstrapFile
|
||||
|
||||
of updateTestnet:
|
||||
discard waitFor updateTestnetMetadata(config)
|
||||
|
||||
|
|
Loading…
Reference in New Issue