radicle: ensure preferred seeds are announced to

Ensure that the preferred seeds that are not in the synced set are announced to.
This commit is contained in:
Fintan Halpenny
2025-05-30 09:40:50 +02:00
parent c57d43f2f5
commit 5a0c14cf61
+6
View File
@@ -51,6 +51,12 @@ impl Announcer {
.into());
}
// N.b extend the unsynced set with any preferred seeds that are not yet
// synced
config
.unsynced
.extend(config.preferred_seeds.difference(&config.synced).copied());
let replicas = config.replicas.min(config.unsynced.len());
let announcer = Self {
local_node: config.local_node,