don't need all data columns to declare it columnless
This commit is contained in:
parent
e962f591cc
commit
162a3bd6cf
|
@ -96,10 +96,9 @@ func hasDataColumns*(quarantine: DataColumnQuarantine,
|
|||
quarantine.data_columns.hasKey(
|
||||
(blck.root, idx)):
|
||||
inc counter
|
||||
if counter > 1:
|
||||
return true
|
||||
else:
|
||||
if counter == 0:
|
||||
return false
|
||||
true
|
||||
|
||||
func dataColumnFetchRecord*(quarantine: DataColumnQuarantine,
|
||||
blck: deneb.SignedBeaconBlock | electra.SignedBeaconBlock): DataColumnFetchRecord =
|
||||
|
|
|
@ -427,9 +427,7 @@ proc initFullNode(
|
|||
# maybeFinalized = maybeFinalized)
|
||||
|
||||
when consensusFork >= ConsensusFork.Deneb:
|
||||
if not dataColumnQuarantine[].hasDataColumns(forkyBlck):
|
||||
# We don't have all the data columns for this block, so we have
|
||||
# to put it in columnless quarantine.
|
||||
if len(forkyBlck.message.body.blob_kzg_commitments) != 0:
|
||||
if not quarantine[].addColumnless(dag.finalizedHead.slot, forkyBlck):
|
||||
err(VerifierError.UnviableFork)
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue