mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-27 03:52:24 +00:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -337,7 +337,7 @@ func (srv *Server) Start() (err error) {
|
||||||
srv.ntab = ntab
|
srv.ntab = ntab
|
||||||
}
|
}
|
||||||
|
|
||||||
dynPeers := srv.MaxPeers / 2
|
dynPeers := (srv.MaxPeers + 1) / 2
|
||||||
if !srv.Discovery {
|
if !srv.Discovery {
|
||||||
dynPeers = 0
|
dynPeers = 0
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue