mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-17 08:56:45 +00:00
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…
x
Reference in New Issue
Block a user