aboutsummaryrefslogtreecommitdiffstats
path: root/p2p/server.go
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2015-12-03 17:45:35 +0800
committerPéter Szilágyi <peterke@gmail.com>2015-12-03 17:45:35 +0800
commitabb53644c63593ad816f2c5b5181568769234323 (patch)
tree0498445b4e88813238e1d81bba676de4abe86cac /p2p/server.go
parent3eebeae363c4367e9892df99f6269c6a17a11f3f (diff)
downloadgo-tangerine-abb53644c63593ad816f2c5b5181568769234323.tar.gz
go-tangerine-abb53644c63593ad816f2c5b5181568769234323.tar.zst
go-tangerine-abb53644c63593ad816f2c5b5181568769234323.zip
p2p: always allow dynamic dials if network not disabled
Diffstat (limited to 'p2p/server.go')
-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
}