From 4f7eedb72b6bdd190b9071382355b3780d68aafb Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Wed, 2 Oct 2024 18:21:05 +0530 Subject: [PATCH] more logging --- beacon_chain/gossip_processing/block_processor.nim | 8 ++++---- beacon_chain/validators/message_router.nim | 8 ++++++-- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/beacon_chain/gossip_processing/block_processor.nim b/beacon_chain/gossip_processing/block_processor.nim index 0e5abfb2a..282589b21 100644 --- a/beacon_chain/gossip_processing/block_processor.nim +++ b/beacon_chain/gossip_processing/block_processor.nim @@ -697,10 +697,10 @@ proc storeBlock( # one self[].lastPayload = signedBlock.message.slot - # write blobs now that block has been written. - let blobs = blobsOpt.valueOr: BlobSidecars @[] - for b in blobs: - self.consensusManager.dag.db.putBlobSidecar(b[]) + # # write blobs now that block has been written. + # let blobs = blobsOpt.valueOr: BlobSidecars @[] + # for b in blobs: + # self.consensusManager.dag.db.putBlobSidecar(b[]) # write data columns now that block has been written. let data_columns = dataColumnsOpt.valueOr: DataColumnSidecars @[] diff --git a/beacon_chain/validators/message_router.nim b/beacon_chain/validators/message_router.nim index 5f71574b9..fa565c398 100644 --- a/beacon_chain/validators/message_router.nim +++ b/beacon_chain/validators/message_router.nim @@ -197,12 +197,16 @@ proc routeSignedBeaconBlock*( custody_columns = router[].network.nodeId.get_custody_columns(max(SAMPLES_PER_SLOT.uint64, metadata)) + debugEcho "dcs" + debugEcho data_columns.len + + debugEcho "custodycols" + debugEcho custody_columns.len + for dc in data_columns: if dc.index in custody_columns: dataColumnRefs = Opt.some(dataColumnsOpt[].get().mapIt(newClone(it))) - debugEcho "Data column refs" - debugEcho dataColumnRefs.get.len let added = await router[].blockProcessor[].addBlock( MsgSource.api, ForkedSignedBeaconBlock.init(blck), blobRefs, dataColumnRefs)