aboutsummaryrefslogtreecommitdiffstats
path: root/p2p
diff options
context:
space:
mode:
Diffstat (limited to 'p2p')
-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
}