Commit abb53644 authored by Péter Szilágyi's avatar Péter Szilágyi

p2p: always allow dynamic dials if network not disabled

parent 3eebeae3
......@@ -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
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment