From 94fa1621724b4a0ad48180939ced477a5be503f6 Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Thu, 10 Oct 2024 00:28:39 +0530 Subject: [PATCH] more fix to da check --- beacon_chain/nimbus_beacon_node.nim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/beacon_chain/nimbus_beacon_node.nim b/beacon_chain/nimbus_beacon_node.nim index 9de1067a6..bff5b2f14 100644 --- a/beacon_chain/nimbus_beacon_node.nim +++ b/beacon_chain/nimbus_beacon_node.nim @@ -420,13 +420,17 @@ proc initFullNode( localSubnetCount)) accumulatedColumns = dataColumnQuarantine[].accumulateDataColumns(forkyBlck) - if accumulatedColumns.len == 0: + if accumulatedColumns.len > 0: # 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): return err(VerifierError.UnviableFork) else: return err(VerifierError.MissingParent) + elif accumulatedColumns.len == 0: + return await blockProcessor[].addBlock(MsgSource.gossip, signedBlock, + Opt.none(BlobSidecars), Opt.none(DataColumnSidecars), + maybeFinalized = maybeFinalized) elif supernode == true and accumulatedColumns.len >= localCustodyColumns.len div 2: let data_columns = dataColumnQuarantine[].popDataColumns(forkyBlck.root, forkyBlck) return await blockProcessor[].addBlock(MsgSource.gossip, signedBlock,