From bad8204250ded1af5136c2aa610791059a2d050e Mon Sep 17 00:00:00 2001 From: Mohammad Kermani Date: Sat, 5 Oct 2024 13:43:23 +0330 Subject: [PATCH] chore: disable gossipsub signing --- .changeset/nasty-years-exist.md | 5 +++++ packages/rosenet-node/lib/createRoseNetNode.ts | 2 ++ packages/rosenet-relay/lib/createRoseNetRelay.ts | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 .changeset/nasty-years-exist.md diff --git a/.changeset/nasty-years-exist.md b/.changeset/nasty-years-exist.md new file mode 100644 index 0000000..50ef4d4 --- /dev/null +++ b/.changeset/nasty-years-exist.md @@ -0,0 +1,5 @@ +--- +'@rosen-bridge/rosenet-node': major +--- + +Disable gossipsub signing diff --git a/packages/rosenet-node/lib/createRoseNetNode.ts b/packages/rosenet-node/lib/createRoseNetNode.ts index 00f15c2..1dcbe05 100644 --- a/packages/rosenet-node/lib/createRoseNetNode.ts +++ b/packages/rosenet-node/lib/createRoseNetNode.ts @@ -129,6 +129,8 @@ const createRoseNetNode = async ({ * a single stream, which is 500MB/3≃170MB. */ maxInboundDataLength: 170_000_000, // 170MB + globalSignaturePolicy: 'StrictNoSign', + ignoreDuplicatePublishError: true, }), dcutr: dcutr(), restartRelayDiscovery, diff --git a/packages/rosenet-relay/lib/createRoseNetRelay.ts b/packages/rosenet-relay/lib/createRoseNetRelay.ts index 8bedfce..1e099f1 100644 --- a/packages/rosenet-relay/lib/createRoseNetRelay.ts +++ b/packages/rosenet-relay/lib/createRoseNetRelay.ts @@ -92,6 +92,8 @@ const createRoseNetRelay = async ({ Dlo: 0, Dhi: 0, Dout: 0, + globalSignaturePolicy: 'StrictNoSign', + ignoreDuplicatePublishError: true, /** * Current implementation of Gossipsub includes at most 5000 messages in * IHAVE or IWANT messages during a `mcachegossip` window, which is by