File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change @@ -381,6 +381,16 @@ func popBlobless*(
381
381
else :
382
382
Opt.none(ForkedSignedBeaconBlock)
383
383
384
+ func getBlobless* (
385
+ quarantine: var Quarantine,
386
+ root: Eth2Digest): Opt[ForkedSignedBeaconBlock] =
387
+ if quarantine.blobless.hasKey(root):
388
+ Opt.some((quarantine.blobless.getOrDefault(
389
+ root,
390
+ default(ForkedSignedBeaconBlock))))
391
+ else :
392
+ Opt.none(ForkedSignedBeaconBlock)
393
+
384
394
func popColumnless* (
385
395
quarantine: var Quarantine,
386
396
root: Eth2Digest): Opt[ForkedSignedBeaconBlock] =
Original file line number Diff line number Diff line change @@ -280,7 +280,7 @@ proc validateBlobSidecarFromEL(
280
280
Future[Result[void , ValidationError]]
281
281
{.async: (raises: [CancelledError]) .} =
282
282
283
- if (let o = self.quarantine[].popBlobless (block_root); o.isSome):
283
+ if (let o = self.quarantine[].getBlobless (block_root); o.isSome):
284
284
let blobless = o.get()
285
285
withBlck(blobless):
286
286
when consensusFork >= ConsensusFork.Electra:
@@ -292,6 +292,11 @@ proc validateBlobSidecarFromEL(
292
292
# check lengths of array[BlobAndProofV1] with blobs
293
293
# kzg commitments of the signed block
294
294
if blobsEl.len == forkyBlck.message.body.blob_kzg_commitments.len:
295
+
296
+ # we have got all blobs from EL, now we can
297
+ # conveniently the blobless block from quarantine
298
+ discard self.quarantine[].popBlobless(block_root)
299
+
295
300
let blob_sidecars_el =
296
301
create_blob_sidecars(
297
302
forkyBlck,
You can’t perform that action at this time.
0 commit comments