add dataColumns to db during forward syncing
This commit is contained in:
parent
9bdcd5eb3b
commit
07d33b3abd
|
@ -682,6 +682,11 @@ proc storeBlock(
|
||||||
for b in blobs:
|
for b in blobs:
|
||||||
self.consensusManager.dag.db.putBlobSidecar(b[])
|
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()
|
let addHeadBlockTick = Moment.now()
|
||||||
|
|
||||||
# Eagerly update head: the incoming block "should" get selected.
|
# Eagerly update head: the incoming block "should" get selected.
|
||||||
|
|
Loading…
Reference in New Issue