From 6a300f75af0a658467456d821c7733534a3c3573 Mon Sep 17 00:00:00 2001 From: Agnish Ghosh Date: Fri, 11 Oct 2024 00:54:59 +0530 Subject: [PATCH] include supernode and nodeid in dc quarantine --- .../data_column_quarantine.nim | 40 +++++++++++++------ beacon_chain/nimbus_beacon_node.nim | 3 ++ 2 files changed, 30 insertions(+), 13 deletions(-) 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..