diff --git a/beacon_chain/gossip_processing/block_processor.nim b/beacon_chain/gossip_processing/block_processor.nim index f9ff552bf..bfc640163 100644 --- a/beacon_chain/gossip_processing/block_processor.nim +++ b/beacon_chain/gossip_processing/block_processor.nim @@ -258,6 +258,8 @@ proc storeBackfillBlock( let data_columns = dataColumnsOpt.valueOr: DataColumnSidecars @[] for c in data_columns: self.consensusManager.dag.db.putDataColumnSidecar(c[]) + debug "Data column written to database!", + data_column = shortLog(c[]) res diff --git a/beacon_chain/gossip_processing/gossip_validation.nim b/beacon_chain/gossip_processing/gossip_validation.nim index 96ccf873f..f304529b0 100644 --- a/beacon_chain/gossip_processing/gossip_validation.nim +++ b/beacon_chain/gossip_processing/gossip_validation.nim @@ -528,7 +528,6 @@ proc validateDataColumnSidecar*( block_header.slot, block_header.proposer_index, data_column_sidecar.index): return errIgnore("DataColumnSidecar: already have valid data column from same proposer") - # [REJECT] The sidecar's column data is valid as # verified by `verify_data_column_kzg_proofs(sidecar)` block: diff --git a/beacon_chain/nimbus_beacon_node.nim b/beacon_chain/nimbus_beacon_node.nim index 76b53a254..fab5e85e7 100644 --- a/beacon_chain/nimbus_beacon_node.nim +++ b/beacon_chain/nimbus_beacon_node.nim @@ -1531,6 +1531,9 @@ proc tryReconstructingDataColumns* (self: BeaconNode, data_column_sidecars.add data_column[] storedColumns.add data_column.index + debugEcho "Pre stored columns" + debugEcho storedColumns + # storedColumn number is less than the NUMBER_OF_COLUMNS # then reconstruction is not possible, and if all the data columns # are already stored then we do not need to reconstruct at all @@ -1549,6 +1552,8 @@ proc tryReconstructingDataColumns* (self: BeaconNode, finalisedDataColumns.add(data_column) db.putDataColumnSidecar(data_column) + debug "Reconstructed data column written to database", + data_column = shortLog(data_column) ok(finalisedDataColumns) proc reconstructAndSendDataColumns*(node: BeaconNode) {.async.} = @@ -1569,6 +1574,7 @@ proc reconstructAndSendDataColumns*(node: BeaconNode) {.async.} = var das_workers = newSeq[Future[SendResult]](dc.len) for i in 0..