Skip to content

Commit 30d081f

Browse files
committed
don't delay in calling addBlock
1 parent cd6e610 commit 30d081f

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

beacon_chain/nimbus_beacon_node.nim

+8-6
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,8 @@ proc initFullNode(
463463
when consensusFork >= ConsensusFork.Electra:
464464
# Pull blobs and proofs from the EL blob pool
465465
let blobsFromElOpt = await node.elManager.sendGetBlobs(forkyBlck)
466+
debugEcho "pulled blobs from el"
467+
debugEcho blobsFromElOpt.get.len
466468
if blobsFromElOpt.isSome():
467469
let blobsEl = blobsFromElOpt.get()
468470
# check lengths of array[BlobAndProofV1] with blob
@@ -479,14 +481,14 @@ proc initFullNode(
479481
let blob_sidecars_el =
480482
create_blob_sidecars(forkyBlck, kzgPrfs, kzgBlbs)
481483

482-
# populate blob quarantine to tackle blob loop
483-
for blb_el in blob_sidecars_el:
484-
blobQuarantine[].put(newClone blb_el)
484+
# # populate blob quarantine to tackle blob loop
485+
# for blb_el in blob_sidecars_el:
486+
# blobQuarantine[].put(newClone blb_el)
485487

486-
# now pop blobQuarantine and make block available for attestation
487-
let blobs = blobQuarantine[].popBlobs(forkyBlck.root, forkyBlck)
488+
# # now pop blobQuarantine and make block available for attestation
489+
# let blobs = blobQuarantine[].popBlobs(forkyBlck.root, forkyBlck)
488490
return await blockProcessor[].addBlock(MsgSource.gossip, signedBlock,
489-
Opt.some(blobs),
491+
Opt.some(blob_sidecars_el),
490492
maybeFinalized = maybeFinalized)
491493

492494
# in case EL does not support `engine_getBlobsV1`

0 commit comments

Comments
 (0)