BlobQuarantine.hasBlobs: fix for loop bound (#4876)
This commit is contained in:
parent
cf202fb928
commit
a32054cdd1
|
@ -72,7 +72,7 @@ func hasBlobs*(quarantine: BlobQuarantine, blck: deneb.SignedBeaconBlock):
|
||||||
let idxs = quarantine.blobIndices(blck.root)
|
let idxs = quarantine.blobIndices(blck.root)
|
||||||
if len(blck.message.body.blob_kzg_commitments) != len(idxs):
|
if len(blck.message.body.blob_kzg_commitments) != len(idxs):
|
||||||
return false
|
return false
|
||||||
for i in 0..len(idxs):
|
for i in 0..<len(idxs):
|
||||||
if idxs[i] != uint64(i):
|
if idxs[i] != uint64(i):
|
||||||
return false
|
return false
|
||||||
true
|
true
|
||||||
|
|
Loading…
Reference in New Issue