rework initial block acceptance
This commit is contained in:
parent
1c9fe9432b
commit
e11e03ebc7
|
@ -427,12 +427,13 @@ proc initFullNode(
|
||||||
# maybeFinalized = maybeFinalized)
|
# maybeFinalized = maybeFinalized)
|
||||||
|
|
||||||
when consensusFork >= ConsensusFork.Deneb:
|
when consensusFork >= ConsensusFork.Deneb:
|
||||||
if len(forkyBlck.message.body.blob_kzg_commitments) != 0:
|
if not dataColumnQuarantine[].hasDataColumns(forkyBlck) and
|
||||||
|
len(forkyBlck.message.body.blob_kzg_commitments) == 0:
|
||||||
if not quarantine[].addColumnless(dag.finalizedHead.slot, forkyBlck):
|
if not quarantine[].addColumnless(dag.finalizedHead.slot, forkyBlck):
|
||||||
err(VerifierError.UnviableFork)
|
err(VerifierError.UnviableFork)
|
||||||
else:
|
else:
|
||||||
err(VerifierError.MissingParent)
|
err(VerifierError.MissingParent)
|
||||||
elif dataColumnQuarantine[].hasDataColumns(forkyBlck):
|
else:
|
||||||
let data_columns = dataColumnQuarantine[].popDataColumns(forkyBlck.root, forkyBlck)
|
let data_columns = dataColumnQuarantine[].popDataColumns(forkyBlck.root, forkyBlck)
|
||||||
await blockProcessor[].addBlock(MsgSource.gossip, signedBlock,
|
await blockProcessor[].addBlock(MsgSource.gossip, signedBlock,
|
||||||
Opt.none(BlobSidecars), Opt.some(data_columns),
|
Opt.none(BlobSidecars), Opt.some(data_columns),
|
||||||
|
|
Loading…
Reference in New Issue