aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeffrey Wilcke <jeffrey@ethereum.org>2015-12-07 18:26:05 +0800
committerJeffrey Wilcke <jeffrey@ethereum.org>2015-12-07 18:26:05 +0800
commit2a3322ea14ec6d53bccfefb2da2b57b533496315 (patch)
tree985a8ec0d6be0675bf7431a63606cfc3c5dc5227
parent4dee2000a3950d044d7787d714c633a75b278307 (diff)
parentabb53644c63593ad816f2c5b5181568769234323 (diff)
downloaddexon-2a3322ea14ec6d53bccfefb2da2b57b533496315.tar.gz
dexon-2a3322ea14ec6d53bccfefb2da2b57b533496315.tar.zst
dexon-2a3322ea14ec6d53bccfefb2da2b57b533496315.zip
Merge pull request #2034 from karalabe/always-allow-dyndials
p2p: always allow dynamic dials if network not disabled
-rw-r--r--p2p/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/p2p/server.go b/p2p/server.go
index ee670b10e..7991585f1 100644
--- a/p2p/server.go
+++ b/p2p/server.go
@@ -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
}