make sure quarantine persistent across all threads
This commit is contained in:
parent
1f3e2a94db
commit
1cf1a62367
|
@ -401,10 +401,15 @@ proc processDataColumnSidecar*(
|
|||
if self.dataColumnQuarantine[].gatherDataColumns(forkyBlck).len ==
|
||||
max(SAMPLES_PER_SLOT, CUSTODY_REQUIREMENT) and
|
||||
self.dataColumnQuarantine[].hasMissingDataColumns(forkyBlck):
|
||||
if self.dataColumnQuarantine[].supernode == false:
|
||||
let columns =
|
||||
self.dataColumnQuarantine[].gatherDataColumns(forkyBlck).mapIt(it[])
|
||||
for gdc in columns:
|
||||
self.dataColumnQuarantine[].put(newClone(gdc))
|
||||
self.blockProcessor[].enqueueBlock(
|
||||
MsgSource.gossip, columnless,
|
||||
Opt.none(BlobSidecars),
|
||||
Opt.some(self.dataColumnQuarantine[].gatherDataColumns(forkyBlck)))
|
||||
Opt.some(self.dataColumnQuarantine[].popDataColumns(block_root, forkyBlck)))
|
||||
elif self.dataColumnQuarantine[].hasEnoughDataColumns(forkyBlck):
|
||||
let
|
||||
columns = self.dataColumnQuarantine[].gatherDataColumns(forkyBlck)
|
||||
|
|
Loading…
Reference in New Issue