diff --git a/beacon_chain/consensus_object_pools/data_column_quarantine.nim b/beacon_chain/consensus_object_pools/data_column_quarantine.nim index 40a973f94..9914ebfb8 100644 --- a/beacon_chain/consensus_object_pools/data_column_quarantine.nim +++ b/beacon_chain/consensus_object_pools/data_column_quarantine.nim @@ -9,6 +9,7 @@ import std/tables, + eth/p2p/discoveryv5/[node], ../spec/[helpers, eip7594_helpers] from std/sequtils import mapIt @@ -23,6 +24,8 @@ type DataColumnQuarantine* = object data_columns*: OrderedTable[(Eth2Digest, ColumnIndex), ref DataColumnSidecar] + supernode*: bool + nodeid*: NodeId onDataColumnSidecarCallback*: OnDataColumnSidecarCallback DataColumnFetchRecord* = object @@ -115,24 +118,35 @@ func checkForInitialDcSidecars*(quarantine: DataColumnQuarantine, func hasDataColumns*(quarantine: DataColumnQuarantine, blck: deneb.SignedBeaconBlock | electra.SignedBeaconBlock): bool = - var counter = 0 - for i in 0..