Expand description
P2P provides all core functionality to interact with the P2P network.
Used to create a network, to start and run it, to broadcast messages across all channels, and to manage the channel store.
The channel store is a hashmap of channel addresses that we can use to add and remove channels or check whether a channel is already in the store.
Structs§
- P2p
- Toplevel peer-to-peer networking interface
Functions§
- broadcast_
serialized_ 🔒to - Auxiliary function to broadcast a serialized message concurrently to all given peers.
Type Aliases§
- P2pPtr
- Atomic pointer to the p2p interface