fix a few more things
This commit is contained in:
parent
7cb4e37120
commit
f17f5ecf94
|
@ -392,9 +392,10 @@ proc processDataColumnSidecar*(
|
|||
|
||||
debug "Data column validated, putting data column in quarantine"
|
||||
self.dataColumnQuarantine[].put(newClone(dataColumnSidecar))
|
||||
self.dag.db.putDataColumnSidecar(dataColumnSidecar)
|
||||
debug "Validated column belongs to custody, attempting to persist",
|
||||
data_column = shortLog(dataColumnSidecar)
|
||||
if self.dataColumnQuarantine[].supernode == false:
|
||||
self.dag.db.putDataColumnSidecar(dataColumnSidecar)
|
||||
debug "Validated column belongs to custody, attempting to persist",
|
||||
data_column = shortLog(dataColumnSidecar)
|
||||
|
||||
let block_root = hash_tree_root(block_header)
|
||||
if (let o = self.quarantine[].popColumnless(block_root); o.isSome):
|
||||
|
@ -412,16 +413,16 @@ proc processDataColumnSidecar*(
|
|||
Opt.none(BlobSidecars),
|
||||
Opt.some(self.dataColumnQuarantine[].popDataColumns(block_root, forkyBlck)))
|
||||
elif self.dataColumnQuarantine[].hasEnoughDataColumns(forkyBlck):
|
||||
# let
|
||||
# columns = self.dataColumnQuarantine[].gatherDataColumns(block_root)
|
||||
# if columns.len >= (NUMBER_OF_COLUMNS div 2) and
|
||||
# self.dataColumnQuarantine[].supernode:
|
||||
# let
|
||||
# reconstructed_columns =
|
||||
# self.processReconstructionFromGossip(forkyBlck, columns.mapIt(it[]))
|
||||
# for rc in reconstructed_columns.get:
|
||||
# if rc notin self.dataColumnQuarantine[].gatherDataColumns(block_root).mapIt(it[]):
|
||||
# self.dataColumnQuarantine[].put(newClone(rc))
|
||||
let
|
||||
columns = self.dataColumnQuarantine[].gatherDataColumns(block_root)
|
||||
if columns.len >= (NUMBER_OF_COLUMNS div 2) and
|
||||
self.dataColumnQuarantine[].supernode:
|
||||
let
|
||||
reconstructed_columns =
|
||||
self.processReconstructionFromGossip(forkyBlck, columns.mapIt(it[]))
|
||||
for rc in reconstructed_columns.get:
|
||||
if rc notin self.dataColumnQuarantine[].gatherDataColumns(block_root).mapIt(it[]):
|
||||
self.dataColumnQuarantine[].put(newClone(rc))
|
||||
self.blockProcessor[].enqueueBlock(
|
||||
MsgSource.gossip, columnless,
|
||||
Opt.none(BlobSidecars),
|
||||
|
|
|
@ -560,17 +560,17 @@ proc getMissingDataColumns(rman: RequestManager): seq[DataColumnIdentifier] =
|
|||
if id.index in local_custody and id notin fetches and
|
||||
len(forkyBlck.message.body.blob_kzg_commitments) != 0:
|
||||
fetches.add(id)
|
||||
# else:
|
||||
# # this is a programming error and it not should occur
|
||||
# warn "missing data column handler found columnless block with all data columns",
|
||||
# blk = columnless.root,
|
||||
# commitments=len(forkyBlck.message.body.blob_kzg_commitments)
|
||||
# ready.add(columnless.root)
|
||||
else:
|
||||
# this is a programming error and it not should occur
|
||||
warn "missing data column handler found columnless block with all data columns",
|
||||
blk = columnless.root,
|
||||
commitments=len(forkyBlck.message.body.blob_kzg_commitments)
|
||||
ready.add(columnless.root)
|
||||
|
||||
# for root in ready:
|
||||
# let columnless = rman.quarantine[].popColumnless(root).valueOr:
|
||||
# continue
|
||||
# discard rman.blockVerifier(columnless, false)
|
||||
for root in ready:
|
||||
let columnless = rman.quarantine[].popColumnless(root).valueOr:
|
||||
continue
|
||||
discard rman.blockVerifier(columnless, false)
|
||||
fetches
|
||||
|
||||
proc requestManagerDataColumnLoop(
|
||||
|
|
Loading…
Reference in New Issue