eth: fixup setMaxPeers

Signed-off-by: Csaba Kiraly <csaba.kiraly@gmail.com>
This commit is contained in:
Csaba Kiraly 2025-05-03 10:39:13 +02:00
parent 5046ea5626
commit e66f3c4c26
No known key found for this signature in database
GPG key ID: 0FE274EE8C95166E

View file

@ -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())
}