lighthouse/beacon_node/network/src/sync
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
..
backfill_sync Move peer db writes to eth2 libp2p (#2724) 2021-11-19 04:42:31 +00:00
range_sync Sync wrong dbg assertion (#2821) 2021-11-19 02:38:25 +00:00
manager.rs Move peer db writes to eth2 libp2p (#2724) 2021-11-19 04:42:31 +00:00
mod.rs Implement checkpoint sync (#2244) 2021-09-22 00:37:28 +00:00
network_context.rs Move peer db writes to eth2 libp2p (#2724) 2021-11-19 04:42:31 +00:00
peer_sync_info.rs Rename eth2_libp2p to lighthouse_network (#2702) 2021-10-19 00:30:39 +00:00