fix
This commit is contained in:
parent
e11e03ebc7
commit
cb3f775f75
|
@ -427,13 +427,8 @@ proc initFullNode(
|
||||||
# maybeFinalized = maybeFinalized)
|
# maybeFinalized = maybeFinalized)
|
||||||
|
|
||||||
when consensusFork >= ConsensusFork.Deneb:
|
when consensusFork >= ConsensusFork.Deneb:
|
||||||
if not dataColumnQuarantine[].hasDataColumns(forkyBlck) and
|
if dataColumnQuarantine[].hasDataColumns(forkyBlck) and
|
||||||
len(forkyBlck.message.body.blob_kzg_commitments) == 0:
|
len(forkyBlck.message.body.blob_kzg_commitments) != 0:
|
||||||
if not quarantine[].addColumnless(dag.finalizedHead.slot, forkyBlck):
|
|
||||||
err(VerifierError.UnviableFork)
|
|
||||||
else:
|
|
||||||
err(VerifierError.MissingParent)
|
|
||||||
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),
|
||||||
|
@ -442,6 +437,10 @@ proc initFullNode(
|
||||||
await blockProcessor[].addBlock(MsgSource.gossip, signedBlock,
|
await blockProcessor[].addBlock(MsgSource.gossip, signedBlock,
|
||||||
Opt.none(BlobSidecars), Opt.none(DataColumnSidecars),
|
Opt.none(BlobSidecars), Opt.none(DataColumnSidecars),
|
||||||
maybeFinalized = maybeFinalized)
|
maybeFinalized = maybeFinalized)
|
||||||
|
else:
|
||||||
|
await blockProcessor[].addBlock(MsgSource.gossip, signedBlock,
|
||||||
|
Opt.none(BlobSidecars), Opt.none(DataColumnSidecars),
|
||||||
|
maybeFinalized = maybeFinalized)
|
||||||
|
|
||||||
rmanBlockLoader = proc(
|
rmanBlockLoader = proc(
|
||||||
blockRoot: Eth2Digest): Opt[ForkedTrustedSignedBeaconBlock] =
|
blockRoot: Eth2Digest): Opt[ForkedTrustedSignedBeaconBlock] =
|
||||||
|
|
Loading…
Reference in New Issue