mirror of https://github.com/status-im/op-geth.git
Merge pull request #2034 from karalabe/always-allow-dyndials
p2p: always allow dynamic dials if network not disabled
This commit is contained in:
commit
2a3322ea14
|
@ -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…
Reference in New Issue