Luke Parker
2121a9b131
Spawn the task to select validators to dial
2025-01-07 18:17:36 -05:00
Luke Parker
419223c54e
Build the swarm
...
Moves UpdateSharedValidatorsTask to validators.rs. While prior planned to
re-use a validators object across connecting and peer state management, the
current plan is to use an independent validators object for each to minimize
any contention. They should be built infrequently enough, and cheap enough to
update in the majority case (due to quickly checking if an update is needed),
that this is fine.
2025-01-07 18:09:25 -05:00
Luke Parker
f27e4e3202
Move the WIP SwarmTask to its own file
2025-01-07 16:34:19 -05:00
Luke Parker
f55165e016
Add channels to send requests/recv responses
2025-01-07 15:51:15 -05:00
Luke Parker
d9e9887d34
Run the dial task whenever we have a peer disconnect
2025-01-07 15:36:42 -05:00
Luke Parker
257f691277
Start filling out message handling in SwarmTask
2025-01-05 01:23:28 -05:00
Luke Parker
c6d0fb477c
Inline noise into OnlyValidators
...
libp2p does support (noise, OnlyValidators) but it'll interpret it as either,
not a chain. This will act as the desired chain.
2025-01-05 00:55:25 -05:00
Luke Parker
96518500b1
Don't hold the shared Validators write lock while making requests to Serai
2025-01-05 00:29:11 -05:00
Luke Parker
2b8f481364
Parallelize requests within Validators::update
2025-01-05 00:17:05 -05:00
Luke Parker
9a5a661d04
Start on the task to manage the swarm
2025-01-04 23:28:29 -05:00
Luke Parker
3daeea09e6
Only let active Serai validators connect over P2P
2025-01-04 22:21:23 -05:00
Luke Parker
5fc8500f8d
Add task to heartbeat a tributary to the P2P code
2025-01-03 13:04:27 -05:00