lighthouse/beacon_node/eth2_libp2p
Age Manning a73dcb7b6d Improved handling of IP Banning (#2530)
This PR in general improves the handling around peer banning. 

Specifically there were issues when multiple peers under a single IP connected to us after we banned the IP for poor behaviour.

This PR should now handle these peers gracefully as well as make some improvements around how we previously disconnected and banned peers. 

The logic now goes as follows:
- Once a peer gets banned, its gets registered with its known IP addresses
- Once enough banned peers exist under a single IP that IP is banned
- We retain connections with existing peers under this IP
- Any new connections under this IP are rejected
2021-09-17 04:02:31 +00:00
..
src Improved handling of IP Banning (#2530) 2021-09-17 04:02:31 +00:00
tests Subscribe to altair gossip topics 2 slots before fork (#2532) 2021-09-17 01:11:16 +00:00
Cargo.toml Experimental discovery (#2577) 2021-09-16 04:45:05 +00:00