grin/p2p
Antioch Peverell 25fcefada2
Flexible peer filtering (#3458)
* first pass at peers iter cleanup

* more flexible peer with diff lookups

* PeersIter with impl Iterator

* sync against outbound peers
reorder peers filters so expensive filters come later

* filter peers by capabilities during sync

* prefer outbound peers with high total difficulty

* with_difficulty now takes a fn to allow more flexible comparisons based on difficulty

* rename peers_iter() -> iter()
2020-10-27 12:36:00 +00:00
..
fuzz Map peers by ip only (ignoring port unless on loopback ip) (#2540) 2019-02-18 12:15:32 +00:00
src Flexible peer filtering (#3458) 2020-10-27 12:36:00 +00:00
tests Flexible peer filtering (#3458) 2020-10-27 12:36:00 +00:00
Cargo.toml Refactor p2p reader (#3433) 2020-09-28 14:43:37 +01:00