lighthouse-pulse/beacon_node/network
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
..
src Move peer db writes to eth2 libp2p (#2724) 2021-11-19 04:42:31 +00:00
Cargo.toml Update Lighthouse Dependencies (#2818) 2021-11-18 05:08:42 +00:00