mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-31 16:58:31 +00:00
only persist data columns after block validity
This commit is contained in:
parent
b573caccc7
commit
66cb3ff54e
@ -700,12 +700,12 @@ 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[])
|
||||
debug "Data column written to database!",
|
||||
data_column = shortLog(c[])
|
||||
# # 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[])
|
||||
# debug "Data column written to database!",
|
||||
# data_column = shortLog(c[])
|
||||
|
||||
let addHeadBlockTick = Moment.now()
|
||||
|
||||
|
@ -33,7 +33,7 @@ const
|
||||
PARALLEL_REQUESTS* = 2
|
||||
## Number of peers we using to resolve our request.
|
||||
|
||||
PARALLEL_REQUESTS_DATA_COLUMNS* = 32
|
||||
PARALLEL_REQUESTS_DATA_COLUMNS* = 16
|
||||
|
||||
BLOB_GOSSIP_WAIT_TIME_NS* = 2 * 1_000_000_000
|
||||
## How long to wait for blobs to arrive over gossip before fetching.
|
||||
|
Loading…
x
Reference in New Issue
Block a user