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.
This commit is contained in:
Luke Parker
2025-01-05 00:55:25 -05:00
parent 96518500b1
commit c6d0fb477c
5 changed files with 35 additions and 26 deletions

View File

@@ -100,6 +100,7 @@ impl SwarmTask {
biased;
// Refresh the instance of validators we use to track peers/share with authenticate
// TODO: Move this to a task
() = tokio::time::sleep(time_till_refresh_validators) => {
const TIME_BETWEEN_REFRESH_VALIDATORS: Duration = Duration::from_secs(60);
const MAX_TIME_BETWEEN_REFRESH_VALIDATORS: Duration = Duration::from_secs(5 * 60);