fix enr update issue

This commit is contained in:
Agnish Ghosh 2024-09-23 14:09:16 +05:30
parent 2ff165d304
commit eaf4b261c1
1 changed files with 1 additions and 1 deletions

View File

@ -2640,7 +2640,7 @@ proc loadCscnetsMetadata*(node: Eth2Node, cscnets: CscCount) =
node.metadata.custody_subnet_count = cscnets.uint64
let res = node.discovery.updateRecord({
enrCustodySubnetCountField: SSZ.encode(node.metadata.custody_subnet_count)})
enrCustodySubnetCountField: SSZ.encode(cscnets)})
if res.isErr:
# This should not occur in this scenario as the private key would always