fix: enr bitfield logic for custody subnet count

This commit is contained in:
Agnish Ghosh 2024-08-14 16:29:28 +05:30
parent 65a52550dc
commit cc21a2a630
1 changed files with 3 additions and 3 deletions

View File

@ -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():