Switch to ENR records in the bootstrap_nodes.txt file
This commit is contained in:
parent
94a0efd7f3
commit
d2f59ebab9
|
@ -1096,14 +1096,15 @@ when isMainModule:
|
||||||
SSZ.saveFile(outSszGenesis, initialState)
|
SSZ.saveFile(outSszGenesis, initialState)
|
||||||
echo "Wrote ", outSszGenesis
|
echo "Wrote ", outSszGenesis
|
||||||
|
|
||||||
var
|
|
||||||
bootstrapAddress = getPersistenBootstrapAddr(
|
|
||||||
config, parseIpAddress(config.bootstrapAddress), Port config.bootstrapPort)
|
|
||||||
|
|
||||||
let bootstrapFile = config.outputBootstrapFile.string
|
let bootstrapFile = config.outputBootstrapFile.string
|
||||||
if bootstrapFile.len > 0:
|
if bootstrapFile.len > 0:
|
||||||
let bootstrapAddrLine = $bootstrapAddress
|
let
|
||||||
writeFile(bootstrapFile, bootstrapAddrLine)
|
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
|
echo "Wrote ", bootstrapFile
|
||||||
|
|
||||||
of importValidator:
|
of importValidator:
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 9b40b662872274975f22fd20dab321fd434017c6
|
Subproject commit 019df303b437f082e01a173a280ee3c5dc10844d
|
Loading…
Reference in New Issue