mirror of
https://github.com/status-im/nimbus-eth2.git
synced 2025-01-28 23:34:59 +00:00
make quarantine and db coherent
This commit is contained in:
parent
0f659a0c1f
commit
8cc53a0428
@ -392,8 +392,6 @@ 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))
|
||||||
|
|
||||||
if self.dataColumnQuarantine[].supernode == false:
|
|
||||||
self.dag.db.putDataColumnSidecar(dataColumnSidecar)
|
self.dag.db.putDataColumnSidecar(dataColumnSidecar)
|
||||||
debug "Validated column belongs to custody, attempting to persist",
|
debug "Validated column belongs to custody, attempting to persist",
|
||||||
data_column = shortLog(dataColumnSidecar)
|
data_column = shortLog(dataColumnSidecar)
|
||||||
|
@ -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