Skip to content

Commit

Permalink
bugfix: adjusted subscriptions so everyone subsrivbes to headers
Browse files Browse the repository at this point in the history
  • Loading branch information
kiltsonfire authored and Djadih committed May 20, 2024
1 parent 1fdc830 commit 0d156e9
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions cmd/utils/hierarchical_coordinator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0d156e9

Please sign in to comment.