diff options
Diffstat (limited to 'src/swarm/roots.rs')
| -rw-r--r-- | src/swarm/roots.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/swarm/roots.rs b/src/swarm/roots.rs index 930c190..2fb6d6e 100644 --- a/src/swarm/roots.rs +++ b/src/swarm/roots.rs @@ -206,6 +206,13 @@ pub(crate) fn repin(state: &AppState) { pin(state.genesis_root, &roots.named, awaiting) }; let mut screening = state.screening.lock_or_recover(); + // A swarm holding a store: its genesis change, whatever peers name. + #[cfg(feature = "federation")] + let pin = if screening.store.is_some() { + RootPin::Any + } else { + pin + }; if screening.root_pin != pin { match &pin { RootPin::Disputed => { |
