diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-12-07 18:26:05 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2015-12-07 18:26:05 +0800 |
commit | 2a3322ea14ec6d53bccfefb2da2b57b533496315 (patch) | |
tree | 985a8ec0d6be0675bf7431a63606cfc3c5dc5227 | |
parent | 4dee2000a3950d044d7787d714c633a75b278307 (diff) | |
parent | abb53644c63593ad816f2c5b5181568769234323 (diff) | |
download | dexon-2a3322ea14ec6d53bccfefb2da2b57b533496315.tar dexon-2a3322ea14ec6d53bccfefb2da2b57b533496315.tar.gz dexon-2a3322ea14ec6d53bccfefb2da2b57b533496315.tar.bz2 dexon-2a3322ea14ec6d53bccfefb2da2b57b533496315.tar.lz dexon-2a3322ea14ec6d53bccfefb2da2b57b533496315.tar.xz 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.go | 2 |
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 } |