mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-19 19:30:44 +00:00
eth: wire txTracker.NotifyRequestLatency into tx fetcher
Plugs the tx fetcher's new onRequestLatency callback into the txtracker's per-peer latency EMA. Tx-request round-trip and timeout samples now flow into Tracker state and become available to the dropper as a per-peer PeerInclusionStats.RequestLatencyEMA signal.
This commit is contained in:
parent
b0a266d3c8
commit
275020f988
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ func newHandler(config *handlerConfig) (*handler, error) {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
h.txTracker = txtracker.New()
|
h.txTracker = txtracker.New()
|
||||||
h.txFetcher = fetcher.NewTxFetcher(h.chain, validateMeta, addTxs, fetchTx, h.removePeer, h.txTracker.NotifyAccepted, nil)
|
h.txFetcher = fetcher.NewTxFetcher(h.chain, validateMeta, addTxs, fetchTx, h.removePeer, h.txTracker.NotifyAccepted, h.txTracker.NotifyRequestLatency)
|
||||||
return h, nil
|
return h, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue