Luke Parker
dda6e3e899
Limit each peer to one connection
...
Prevents dialing the same peer multiple times (successfully).
2025-01-09 00:06:51 -05:00
Luke Parker
75a00f2a1a
Add allow_block_list to libp2p
...
The check in validators prevented connections from non-validators.
Non-validators could still participate in the network if they laundered their
connection through a malicious validator. allow_block_list ensures that peers,
not connections, are explicitly limited to validators.
2025-01-08 23:54:27 -05:00
Luke Parker
6cde2bb6ef
Correct and document topic subscription
2025-01-08 23:16:04 -05:00
Luke Parker
20326bba73
Replace KeepAlive with ping
...
This is more standard and allows measuring latency.
2025-01-08 23:01:36 -05:00
Luke Parker
ce83b41712
Finish mapping Libp2p to the P2p trait API
2025-01-08 19:39:09 -05:00
Luke Parker
de2d6568a4
Actually implement the Peer abstraction for Libp2p
2025-01-08 17:40:08 -05:00
Luke Parker
fd9b464b35
Add a trait for the P2p network used in the coordinator
...
Moves all of the Libp2p code to a dedicated directory. Makes the Heartbeat task
abstract over any P2p network.
2025-01-08 17:01:37 -05:00