From e66f3c4c26bc944e43c30c3600f1253dfe798363 Mon Sep 17 00:00:00 2001 From: Csaba Kiraly Date: Sat, 3 May 2025 10:39:13 +0200 Subject: [PATCH] eth: fixup setMaxPeers Signed-off-by: Csaba Kiraly --- eth/backend.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/backend.go b/eth/backend.go index eed6cac248..7198e66577 100644 --- a/eth/backend.go +++ b/eth/backend.go @@ -411,7 +411,7 @@ func (s *Ethereum) Start() error { } func (s *Ethereum) setMaxPeers(max int) { - s.p2pServer.MaxPeers = max + s.p2pServer.SetMaxPeers(max) s.handler.SetMaxPeers(max) s.dropper.SetMaxPeers(s.p2pServer.MaxDialedConns(), s.p2pServer.MaxInboundConns()) }