Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
protocol: note on peering and fetches
Adrian Duke committed 3 months ago
commit 4793426b4f4031e000a46d59f93808236451a0cb
parent 5a2664e84f1e32278393a9aed65666fb176eb306
1 file changed +7 -0
modified crates/radicle-protocol/src/service.rs
@@ -1655,6 +1655,13 @@ where
                // Refs can be relayed by peers who don't have the data in storage,
                // therefore we only check whether we are connected to the *announcer*,
                // which is required by the protocol to only announce refs it has.
+
                //
+
                // TODO(Ade): Perhaps it makes sense in a more peer-to-peer arrangement
+
                // to establish connections to peers whom you follow but aren't directly connected
+
                // to. E.g. Alice <--> Bob <--> Eve
+
                // Alice follows Eve, Eve announces refs of interest but because Alice
+
                // is not directly connected she cant see said refs if Bob isn't also interested in
+
                // Eve's refs.
                let Some(remote) = self.sessions.get(announcer).cloned() else {
                    trace!(
                        target: "service",