eth: fixup per-peer metrics

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2025-04-29 22:44:30 +02:00
parent d8dd9d4c20
commit 265f1224c1
No known key found for this signature in database
GPG key ID: 0FE274EE8C95166E

View file

@ -310,7 +310,6 @@ func (f *TxFetcher) isKnownUnderpriced(hash common.Hash) bool {
// direct request replies. The differentiation is important so the fetcher can
// re-schedule missing transactions as soon as possible.
func (f *TxFetcher) Enqueue(peer string, txs []*types.Transaction, direct bool) error {
// TODO: add peer metrics here
var (
inMeter = txReplyInMeter
knownMeter = txReplyKnownMeter