mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-16 01:27:01 +00:00
make quarantine and db coherent
This commit is contained in:
parent
0f659a0c1f
commit
8cc53a0428
@ -392,11 +392,9 @@ proc processDataColumnSidecar*(
|
|||||||
|
|
||||||
debug "Data column validated, putting data column in quarantine"
|
debug "Data column validated, putting data column in quarantine"
|
||||||
self.dataColumnQuarantine[].put(newClone(dataColumnSidecar))
|
self.dataColumnQuarantine[].put(newClone(dataColumnSidecar))
|
||||||
|
self.dag.db.putDataColumnSidecar(dataColumnSidecar)
|
||||||
if self.dataColumnQuarantine[].supernode == false:
|
debug "Validated column belongs to custody, attempting to persist",
|
||||||
self.dag.db.putDataColumnSidecar(dataColumnSidecar)
|
data_column = shortLog(dataColumnSidecar)
|
||||||
debug "Validated column belongs to custody, attempting to persist",
|
|
||||||
data_column = shortLog(dataColumnSidecar)
|
|
||||||
|
|
||||||
let block_root = hash_tree_root(block_header)
|
let block_root = hash_tree_root(block_header)
|
||||||
if (let o = self.quarantine[].popColumnless(block_root); o.isSome):
|
if (let o = self.quarantine[].popColumnless(block_root); o.isSome):
|
||||||
|
@ -541,7 +541,7 @@ proc getMissingDataColumns(rman: RequestManager): seq[DataColumnIdentifier] =
|
|||||||
debug "Not handling missing data columns early in slot"
|
debug "Not handling missing data columns early in slot"
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if not rman.dataColumnQuarantine[].hasMissingDataColumns(forkyBlck):
|
if rman.dataColumnQuarantine[].hasMissingDataColumns(forkyBlck):
|
||||||
let missing = rman.dataColumnQuarantine[].dataColumnFetchRecord(forkyBlck)
|
let missing = rman.dataColumnQuarantine[].dataColumnFetchRecord(forkyBlck)
|
||||||
if len(missing.indices) == 0:
|
if len(missing.indices) == 0:
|
||||||
warn "quarantine is missing data columns, but missing indices are empty",
|
warn "quarantine is missing data columns, but missing indices are empty",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user