diff options
author | Péter Szilágyi <peterke@gmail.com> | 2015-12-03 17:45:35 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2015-12-03 17:45:35 +0800 |
commit | abb53644c63593ad816f2c5b5181568769234323 (patch) | |
tree | 0498445b4e88813238e1d81bba676de4abe86cac /p2p/server.go | |
parent | 3eebeae363c4367e9892df99f6269c6a17a11f3f (diff) | |
download | dexon-abb53644c63593ad816f2c5b5181568769234323.tar dexon-abb53644c63593ad816f2c5b5181568769234323.tar.gz dexon-abb53644c63593ad816f2c5b5181568769234323.tar.bz2 dexon-abb53644c63593ad816f2c5b5181568769234323.tar.lz dexon-abb53644c63593ad816f2c5b5181568769234323.tar.xz dexon-abb53644c63593ad816f2c5b5181568769234323.tar.zst dexon-abb53644c63593ad816f2c5b5181568769234323.zip |
p2p: always allow dynamic dials if network not disabled
Diffstat (limited to 'p2p/server.go')
-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 } |