more logging

This commit is contained in:
Agnish Ghosh 2024-10-02 18:21:05 +05:30
parent 6af7918b78
commit 4f7eedb72b
2 changed files with 10 additions and 6 deletions

View File

@ -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 @[]

View File

@ -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)