eth: move tracker.Start() to the handler.Start()

This commit is contained in:
healthykim 2026-07-02 17:07:34 +02:00
parent f9a0352853
commit 3502150f98
2 changed files with 3 additions and 3 deletions

View file

@ -470,9 +470,6 @@ func (s *Ethereum) Start() error {
// Start the networking layer // Start the networking layer
s.handler.Start(s.p2pServer.MaxPeers) s.handler.Start(s.p2pServer.MaxPeers)
// Start the transaction tracker (records tx deliveries, credits peer inclusions).
s.handler.txTracker.Start(s.blockchain)
// Start the connection manager with inclusion-based peer protection. // Start the connection manager with inclusion-based peer protection.
s.dropper.Start(s.p2pServer, func() bool { return !s.Synced() }, s.handler.txTracker.GetAllPeerStats) s.dropper.Start(s.p2pServer, func() bool { return !s.Synced() }, s.handler.txTracker.GetAllPeerStats)

View file

@ -430,6 +430,9 @@ func (h *handler) Start(maxPeers int) {
// start sync handlers // start sync handlers
h.txFetcher.Start() h.txFetcher.Start()
// Start the transaction tracker (records tx deliveries, credits peer inclusions).
h.txTracker.Start(h.chain)
// start peer handler tracker // start peer handler tracker
h.wg.Add(1) h.wg.Add(1)
go h.protoTracker() go h.protoTracker()