Switch to ENR records in the bootstrap_nodes.txt file

This commit is contained in:
Zahary Karadjov 2020-02-11 18:58:29 +02:00 committed by zah
parent 94a0efd7f3
commit d2f59ebab9
2 changed files with 8 additions and 7 deletions

View File

@ -1096,14 +1096,15 @@ when isMainModule:
SSZ.saveFile(outSszGenesis, initialState)
echo "Wrote ", outSszGenesis
var
bootstrapAddress = getPersistenBootstrapAddr(
config, parseIpAddress(config.bootstrapAddress), Port config.bootstrapPort)
let bootstrapFile = config.outputBootstrapFile.string
if bootstrapFile.len > 0:
let bootstrapAddrLine = $bootstrapAddress
writeFile(bootstrapFile, bootstrapAddrLine)
let
networkKeys = getPersistentNetKeys(config)
bootstrapAddress = enode.Address(
ip: parseIpAddress(config.bootstrapAddress),
udpPort: Port config.bootstrapPort)
bootstrapEnr = enr.Record.init(1, networkKeys.seckey, bootstrapAddress)
writeFile(bootstrapFile, bootstrapEnr.toURI)
echo "Wrote ", bootstrapFile
of importValidator:

2
vendor/nim-eth vendored

@ -1 +1 @@
Subproject commit 9b40b662872274975f22fd20dab321fd434017c6
Subproject commit 019df303b437f082e01a173a280ee3c5dc10844d