added the attestation bitfield to the bootstrap enr
This commit is contained in:
parent
be89a3c54d
commit
f3d0ae35f6
|
@ -1375,13 +1375,15 @@ when isMainModule:
|
|||
if bootstrapFile.len > 0:
|
||||
let
|
||||
networkKeys = getPersistentNetKeys(config)
|
||||
metadata = getPersistentNetMetadata(config)
|
||||
bootstrapEnr = enr.Record.init(
|
||||
1, # sequence number
|
||||
networkKeys.seckey.asEthKey,
|
||||
some(config.bootstrapAddress),
|
||||
config.bootstrapPort,
|
||||
config.bootstrapPort,
|
||||
[toFieldPair("eth2", SSZ.encode(enrForkIdFromState initialState))])
|
||||
[toFieldPair("eth2", SSZ.encode(enrForkIdFromState initialState)),
|
||||
toFieldPair("attnets", SSZ.encode(metadata.attnets))])
|
||||
|
||||
writeFile(bootstrapFile, bootstrapEnr.toURI)
|
||||
echo "Wrote ", bootstrapFile
|
||||
|
|
Loading…
Reference in New Issue