From 2a9372ea5fcf0f3b0bb1d71a0bcf21d9db02c9f5 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Fri, 11 Apr 2025 14:00:57 +0200 Subject: [PATCH] eth/dropper: changing error code to DiscUselessPeer Signed-off-by: Csaba Kiraly --- eth/dropper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/dropper.go b/eth/dropper.go index 736b29912a..3b7d9d1afa 100644 --- a/eth/dropper.go +++ b/eth/dropper.go @@ -129,7 +129,7 @@ func (cm *dropper) dropRandomPeer() bool { p := droppable[mrand.Intn(len(droppable))] log.Debug("Dropping random peer", "inbound", p.Inbound(), "id", p.ID(), "duration", common.PrettyDuration(p.Lifetime()), "peercountbefore", len(peers)) - p.Disconnect(p2p.DiscTooManyPeers) + p.Disconnect(p2p.DiscUselessPeer) if p.Inbound() { droppedInbound.Mark(1) } else {