From 0d156e9b3a0a010a0b498fc47cec09dd7f5939c8 Mon Sep 17 00:00:00 2001 From: drk Date: Sun, 19 May 2024 21:28:02 -0500 Subject: [PATCH] bugfix: adjusted subscriptions so everyone subsrivbes to headers --- cmd/utils/hierarchical_coordinator.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/utils/hierarchical_coordinator.go b/cmd/utils/hierarchical_coordinator.go index 7fcdb54b9d..9090ec6644 100644 --- a/cmd/utils/hierarchical_coordinator.go +++ b/cmd/utils/hierarchical_coordinator.go @@ -133,10 +133,7 @@ func (hc *HierarchicalCoordinator) startNode(logPath string, quaiBackend quai.Co stack, apiBackend := makeFullNode(hc.p2p, location, hc.slicesRunning, hc.currentExpansionNumber, genesisBlock, logger) quaiBackend.SetApiBackend(&apiBackend, location) - // Only subscribe to block and transaction data if processing state - if !quaiBackend.ProcessingState(location) && location.Context() == common.ZONE_CTX { - hc.p2p.Subscribe(location, &types.WorkObjectHeaderView{}) - } + hc.p2p.Subscribe(location, &types.WorkObjectHeaderView{}) if quaiBackend.ProcessingState(location) && location.Context() == common.ZONE_CTX { // Subscribe to the new topics after setting the api backend