From abb53644c63593ad816f2c5b5181568769234323 Mon Sep 17 00:00:00 2001 From: Péter Szilágyi Date: Thu, 3 Dec 2015 11:45:35 +0200 Subject: p2p: always allow dynamic dials if network not disabled --- p2p/server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'p2p') 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 } -- cgit