diff options
Diffstat (limited to 'src/swarm/peer/inbound.rs')
| -rw-r--r-- | src/swarm/peer/inbound.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/swarm/peer/inbound.rs b/src/swarm/peer/inbound.rs index 4a5b6ac..d266e5f 100644 --- a/src/swarm/peer/inbound.rs +++ b/src/swarm/peer/inbound.rs @@ -96,6 +96,13 @@ pub(crate) async fn handle_message( return Ok(()); } + // In a swarm holding a store, its members only, each as the party its handshakes name + // (`members`). + #[cfg(feature = "federation")] + if !super::members::member(state, &peer, &message).await { + return Ok(()); + } + // The root its document starts from: another than ours, of our epoch, is another // history; what a joiner takes as its root follows those named (`swarm::roots`). match &message { |
