mirror of
https://github.com/status-im/op-geth.git
synced 2025-02-27 14:00:49 +00:00
p2p: always allow dynamic dials if network not disabled
This commit is contained in:
parent
3eebeae363
commit
abb53644c6
@ -337,7 +337,7 @@ func (srv *Server) Start() (err error) {
|
||||
srv.ntab = ntab
|
||||
}
|
||||
|
||||
dynPeers := srv.MaxPeers / 2
|
||||
dynPeers := (srv.MaxPeers + 1) / 2
|
||||
if !srv.Discovery {
|
||||
dynPeers = 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user