add dataColumns to db during forward syncing

This commit is contained in:
Agnish Ghosh 2024-06-24 21:28:23 +05:30
parent 9bdcd5eb3b
commit 07d33b3abd
No known key found for this signature in database
GPG Key ID: 7E927C221EBA4F6E
1 changed files with 5 additions and 0 deletions

View File

@ -682,6 +682,11 @@ proc storeBlock(
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 @[]
for c in data_columns:
self.consensusManager.dag.db.putDataColumnSidecar(c[])
let addHeadBlockTick = Moment.now()
# Eagerly update head: the incoming block "should" get selected.