Skip to content

Commit

Permalink
Merge branch 'chore/disable-gossipsub-signing' into 'dev'
Browse files Browse the repository at this point in the history
chore: disable gossipsub signing

Closes #83

See merge request ergo/rosen-bridge/rosenet!42
  • Loading branch information
vorujack committed Oct 5, 2024
2 parents 07b82fb + bad8204 commit 6b4f219
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/nasty-years-exist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@rosen-bridge/rosenet-node': major
---

Disable gossipsub signing
2 changes: 2 additions & 0 deletions packages/rosenet-node/lib/createRoseNetNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
2 changes: 2 additions & 0 deletions packages/rosenet-relay/lib/createRoseNetRelay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6b4f219

Please sign in to comment.