lighthouse-pulse/beacon_node
Divma 53562010ec Move peer db writes to eth2 libp2p (#2724)
## Issue Addressed
Part of a bigger effort to make the network globals read only. This moves all writes to the `PeerDB` to the `eth2_libp2p` crate. Limiting writes to the peer manager is a slightly more complicated issue for a next PR, to keep things reviewable.

## Proposed Changes
- Make the peers field in the globals a private field.
- Allow mutable access to the peers field to `eth2_libp2p` for now.
- Add a new network message to update the sync state.

Co-authored-by: Age Manning <Age@AgeManning.com>
2021-11-19 04:42:31 +00:00
..
beacon_chain Update Lighthouse Dependencies (#2818) 2021-11-18 05:08:42 +00:00
client Update Lighthouse Dependencies (#2818) 2021-11-18 05:08:42 +00:00
eth1 Update Lighthouse Dependencies (#2818) 2021-11-18 05:08:42 +00:00
genesis Update Lighthouse Dependencies (#2818) 2021-11-18 05:08:42 +00:00
http_api Move peer db writes to eth2 libp2p (#2724) 2021-11-19 04:42:31 +00:00
http_metrics Update Lighthouse Dependencies (#2818) 2021-11-18 05:08:42 +00:00
lighthouse_network Move peer db writes to eth2 libp2p (#2724) 2021-11-19 04:42:31 +00:00
network Move peer db writes to eth2 libp2p (#2724) 2021-11-19 04:42:31 +00:00
operation_pool Add op pool metrics for attestations (#2758) 2021-11-01 05:52:31 +00:00
src De-duplicate attestations in the slasher (#2767) 2021-11-08 00:01:09 +00:00
store Add API version headers and map_fork_name! (#2745) 2021-10-28 01:18:04 +00:00
tests Altair consensus changes and refactors (#2279) 2021-07-09 06:15:32 +00:00
timer Update Lighthouse Dependencies (#2818) 2021-11-18 05:08:42 +00:00
websocket_server Server sent events (#1920) 2020-12-04 00:18:58 +00:00
Cargo.toml Rename eth2_libp2p to lighthouse_network (#2702) 2021-10-19 00:30:39 +00:00