lighthouse/beacon_node
Age Manning 66f0cf4430 Improve peer handling (#1796)
## Issue Addressed

Potentially resolves #1647 and sync stalls. 

## Proposed Changes

The handling of the state of banned peers was inadequate for the complex peerdb data structure. We store a limited number of disconnected and banned peers in the db. We were not tracking intermediate "disconnecting" states and the in some circumstances we were updating the peer state without informing the peerdb. This lead to a number of inconsistencies in the peer state. 

Further, the peer manager could ban a peer changing a peer's state from being connected to banned. In this circumstance, if the peer then disconnected, we didn't inform the application layer, which lead to applications like sync not being informed of a peers disconnection. This could lead to sync stalling and having to require a lighthouse restart. 

Improved handling for peer states and interactions with the peerdb is made in this PR.
2020-10-23 01:27:48 +00:00
..
beacon_chain Refine op pool pruning (#1805) 2020-10-22 04:47:29 +00:00
client Fix head tracker concurrency bugs (#1771) 2020-10-19 05:58:39 +00:00
eth1 Update external deps (#1711) 2020-10-05 08:22:19 +00:00
eth2_libp2p Improve peer handling (#1796) 2020-10-23 01:27:48 +00:00
genesis Update external deps (#1711) 2020-10-05 08:22:19 +00:00
http_api Improve peer handling (#1796) 2020-10-23 01:27:48 +00:00
http_metrics Support pre-flight CORS check (#1772) 2020-10-22 04:47:27 +00:00
network Sync state adjustments (#1804) 2020-10-22 00:26:06 +00:00
operation_pool Refine op pool pruning (#1805) 2020-10-22 04:47:29 +00:00
src Support pre-flight CORS check (#1772) 2020-10-22 04:47:27 +00:00
store Fix head tracker concurrency bugs (#1771) 2020-10-19 05:58:39 +00:00
tests Implement standard eth2.0 API (#1569) 2020-10-01 11:12:36 +10:00
timer Upgrade discovery and restructure task execution (#1693) 2020-10-05 18:45:54 +11:00
websocket_server Update external deps (#1711) 2020-10-05 08:22:19 +00:00
Cargo.toml Bump version to v0.3.0 (#1743) 2020-10-09 02:05:30 +00:00