p2p: always allow dynamic dials if network not disabled

release/1.4
Péter Szilágyi 9 years ago
parent 3eebeae363
commit abb53644c6
  1. 2
      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
}

Loading…
Cancel
Save