From d7f66e7374409767f7f319c325a48423f0e53ff8 Mon Sep 17 00:00:00 2001 From: Mohammad Kermani Date: Sun, 18 Aug 2024 12:02:33 +0330 Subject: [PATCH] refactor(rosenet-relay): make relays only gossip As Gossipsub bootstrappers, the relays should only gossip without keeping full-message connections with other nodes. --- packages/rosenet-relay/lib/createRoseNetRelay.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/rosenet-relay/lib/createRoseNetRelay.ts b/packages/rosenet-relay/lib/createRoseNetRelay.ts index 431046f..40585bd 100644 --- a/packages/rosenet-relay/lib/createRoseNetRelay.ts +++ b/packages/rosenet-relay/lib/createRoseNetRelay.ts @@ -75,6 +75,10 @@ const createRoseNetRelay = async ({ }), pubsub: gossipsub({ allowPublishToZeroPeers: true, + D: 0, + Dlo: 0, + Dhi: 0, + Dout: 0, }), identify: identify(), },