mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-19 19:09:08 +00:00
disable blob quarantine checks
This commit is contained in:
parent
7c39d79e7e
commit
121a3687b8
@ -408,42 +408,42 @@ proc initFullNode(
|
||||
maybeFinalized: bool):
|
||||
Future[Result[void, VerifierError]] {.async: (raises: [CancelledError]).} =
|
||||
withBlck(signedBlock):
|
||||
when consensusFork >= ConsensusFork.Deneb:
|
||||
if not blobQuarantine[].hasBlobs(forkyBlck):
|
||||
# We don't have all the blobs for this block, so we have
|
||||
# to put it in blobless quarantine.
|
||||
if not quarantine[].addBlobless(dag.finalizedHead.slot, forkyBlck):
|
||||
err(VerifierError.UnviableFork)
|
||||
else:
|
||||
err(VerifierError.MissingParent)
|
||||
else:
|
||||
let blobs = blobQuarantine[].popBlobs(forkyBlck.root, forkyBlck)
|
||||
await blockProcessor[].addBlock(MsgSource.gossip, signedBlock,
|
||||
Opt.some(blobs), Opt.none(DataColumnSidecars),
|
||||
maybeFinalized = maybeFinalized)
|
||||
else:
|
||||
await blockProcessor[].addBlock(MsgSource.gossip, signedBlock,
|
||||
Opt.none(BlobSidecars), Opt.none(DataColumnSidecars),
|
||||
maybeFinalized = maybeFinalized)
|
||||
|
||||
# when consensusFork >= ConsensusFork.Deneb:
|
||||
# if not dataColumnQuarantine[].hasDataColumns(forkyBlck):
|
||||
# # We don't have all the data columns for this block, so we have
|
||||
# # to put it in columnless quarantine.
|
||||
# if not quarantine[].addColumnless(dag.finalizedHead.slot, forkyBlck):
|
||||
# if not blobQuarantine[].hasBlobs(forkyBlck):
|
||||
# # We don't have all the blobs for this block, so we have
|
||||
# # to put it in blobless quarantine.
|
||||
# if not quarantine[].addBlobless(dag.finalizedHead.slot, forkyBlck):
|
||||
# err(VerifierError.UnviableFork)
|
||||
# else:
|
||||
# err(VerifierError.MissingParent)
|
||||
# else:
|
||||
# let data_columns = dataColumnQuarantine[].popDataColumns(forkyBlck.root, forkyBlck)
|
||||
# let blobs = blobQuarantine[].popBlobs(forkyBlck.root, forkyBlck)
|
||||
# await blockProcessor[].addBlock(MsgSource.gossip, signedBlock,
|
||||
# Opt.none(BlobSidecars), Opt.some(data_columns),
|
||||
# Opt.some(blobs), Opt.none(DataColumnSidecars),
|
||||
# maybeFinalized = maybeFinalized)
|
||||
# else:
|
||||
# await blockProcessor[].addBlock(MsgSource.gossip, signedBlock,
|
||||
# Opt.none(BlobSidecars), Opt.none(DataColumnSidecars),
|
||||
# maybeFinalized = maybeFinalized)
|
||||
|
||||
when consensusFork >= ConsensusFork.Deneb:
|
||||
if not dataColumnQuarantine[].hasDataColumns(forkyBlck):
|
||||
# We don't have all the data columns for this block, so we have
|
||||
# to put it in columnless quarantine.
|
||||
if not quarantine[].addColumnless(dag.finalizedHead.slot, forkyBlck):
|
||||
err(VerifierError.UnviableFork)
|
||||
else:
|
||||
err(VerifierError.MissingParent)
|
||||
else:
|
||||
let data_columns = dataColumnQuarantine[].popDataColumns(forkyBlck.root, forkyBlck)
|
||||
await blockProcessor[].addBlock(MsgSource.gossip, signedBlock,
|
||||
Opt.none(BlobSidecars), Opt.some(data_columns),
|
||||
maybeFinalized = maybeFinalized)
|
||||
else:
|
||||
await blockProcessor[].addBlock(MsgSource.gossip, signedBlock,
|
||||
Opt.none(BlobSidecars), Opt.none(DataColumnSidecars),
|
||||
maybeFinalized = maybeFinalized)
|
||||
|
||||
rmanBlockLoader = proc(
|
||||
blockRoot: Eth2Digest): Opt[ForkedTrustedSignedBeaconBlock] =
|
||||
dag.getForkedBlock(blockRoot)
|
||||
|
Loading…
x
Reference in New Issue
Block a user