Skip to content

Commit

Permalink
chore: disable auto dial
Browse files Browse the repository at this point in the history
  • Loading branch information
mkermani144 committed Jun 29, 2024
1 parent c3d1e55 commit af59ea7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/rosenet-node/lib/createRoseNetNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ const createRoseNetNode = async ({
denyDialPeer: isPeerUnauthorized,
}),
},
connectionManager: {
minConnections: 0,
maxConnections: 2000,
},
streamMuxers: [
mplex({
maxStreamBufferSize: 100_000_000,
Expand Down
4 changes: 4 additions & 0 deletions packages/rosenet-relay/lib/createRoseNetRelay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ const createRoseNetRelay = async ({
},
transports: [tcp()],
connectionEncryption: [noise()],
connectionManager: {
minConnections: 0,
maxConnections: 2000,
},
connectionGater: {
denyInboundEncryptedConnection: isPeerUnauthorized,

Expand Down

0 comments on commit af59ea7

Please sign in to comment.