Skip to content

Commit

Permalink
feat(rosenet-node): disable autodial
Browse files Browse the repository at this point in the history
As long as hole punching is not enabled, enabling autodial only wastes
resources, as the node tries to connect to all of the discovered peers,
all of which advertise their public address.
  • Loading branch information
mkermani144 committed Sep 8, 2024
1 parent a8f6cef commit 886acaf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/rosenet-node/lib/createRoseNetNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ const createRoseNetNode = async ({
}),
},
streamMuxers: [yamux()],
connectionManager: {
minConnections: 0,
},
peerDiscovery: [
bootstrap({
list: sampledRelayMultiaddrs,
Expand Down

0 comments on commit 886acaf

Please sign in to comment.