mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-21 20:26:41 +00:00
eth: move tracker.Start() to the handler.Start()
This commit is contained in:
parent
f9a0352853
commit
3502150f98
2 changed files with 3 additions and 3 deletions
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue