mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-02-21 02:38:23 +00:00
fix: enr bitfield logic for custody subnet count
This commit is contained in:
parent
65a52550dc
commit
cc21a2a630
@ -162,9 +162,9 @@ proc queryRandom*(
|
||||
peer = n.record.toURI(), exception = e.name, msg = e.msg
|
||||
continue
|
||||
|
||||
if wantedCscnets[0] and cscnetsNode[0]:
|
||||
debug "Connected to a peer with csc ENR field",
|
||||
peer = n.record.toURI()
|
||||
for i in 0..<DATA_COLUMN_SIDECAR_SUBNET_COUNT:
|
||||
if wantedCscnets[i] and cscnetsNode[i]:
|
||||
score += 1
|
||||
|
||||
let attnetsBytes = n.record.get(enrAttestationSubnetsField, seq[byte])
|
||||
if attnetsBytes.isOk():
|
||||
|
Loading…
x
Reference in New Issue
Block a user