From 46034f1a053974cf40665c3ac51cc3cd185b3e0b Mon Sep 17 00:00:00 2001 From: Mohammad Kermani Date: Sun, 6 Oct 2024 10:26:08 +0330 Subject: [PATCH] feat: enable peer exchange for relays --- .changeset/gorgeous-dodos-sit.md | 5 +++++ packages/rosenet-relay/lib/createRoseNetRelay.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/gorgeous-dodos-sit.md diff --git a/.changeset/gorgeous-dodos-sit.md b/.changeset/gorgeous-dodos-sit.md new file mode 100644 index 0000000..e824869 --- /dev/null +++ b/.changeset/gorgeous-dodos-sit.md @@ -0,0 +1,5 @@ +--- +'@rosen-bridge/rosenet-relay': minor +--- + +Enable gossipsub peer exchange in relays diff --git a/packages/rosenet-relay/lib/createRoseNetRelay.ts b/packages/rosenet-relay/lib/createRoseNetRelay.ts index 1e099f1..97160c5 100644 --- a/packages/rosenet-relay/lib/createRoseNetRelay.ts +++ b/packages/rosenet-relay/lib/createRoseNetRelay.ts @@ -92,6 +92,7 @@ const createRoseNetRelay = async ({ Dlo: 0, Dhi: 0, Dout: 0, + doPX: true, globalSignaturePolicy: 'StrictNoSign', ignoreDuplicatePublishError: true, /**