grin/p2p
hashmap a63cfa7138 Allow to have more than min_peers/2 outbound peers (#2537)
* Allow to have more than min_peers/2 outbound peers

Default value is 8, so we allow only 4 outbound peers, unfortunately if a node is behind NAT it can't get inbound peers and it stucks with 4 peers as maximum.
This PR allows a number of outbound peers to be between min_peers and max_peers/2. Node behind NAT will eventually have just min_peers number of peers.

* Extract into healthy_peers_mix function
2019-02-07 12:26:23 -08:00
..
fuzz Add fuzz tests for p2p crate (#1931) 2018-11-05 21:50:16 +01:00
src Allow to have more than min_peers/2 outbound peers (#2537) 2019-02-07 12:26:23 -08:00
tests Clean shutdown via stop_state (#2117) 2018-12-11 11:07:41 +00:00
Cargo.toml bump for v1.0.1 (#2511) 2019-02-01 14:43:18 +00:00