Skip to content

Commit

Permalink
fix: revert circuit-relay upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
d-roak committed Dec 22, 2024
1 parent 77bec89 commit f74624c
Show file tree
Hide file tree
Showing 3 changed files with 636 additions and 572 deletions.
2 changes: 1 addition & 1 deletion packages/network/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@chainsafe/libp2p-yamux": "^7.0.1",
"@libp2p/autonat": "^2.0.6",
"@libp2p/bootstrap": "^11.0.6",
"@libp2p/circuit-relay-v2": "^3.1.3",
"@libp2p/circuit-relay-v2": "^2.1.5",
"@libp2p/crypto": "^5.0.5",
"@libp2p/dcutr": "^2.0.6",
"@libp2p/devtools-metrics": "^1.1.5",
Expand Down
5 changes: 2 additions & 3 deletions packages/network/src/node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ export class DRPNetworkNode {
this._node = await createLibp2p({
privateKey: this._privateKey,
addresses: {
listen: this._config?.addresses
? this._config.addresses
: ["/webrtc", "/p2p-circuit"],
listen: this._config?.addresses ? this._config.addresses : ["/webrtc"],
},
connectionEncrypters: [noise()],
connectionGater: {
Expand All @@ -133,6 +131,7 @@ export class DRPNetworkNode {
streamMuxers: [yamux()],
transports: [
circuitRelayTransport({
discoverRelays: 2,
reservationConcurrency: 1,
}),
webRTC(),
Expand Down
Loading

0 comments on commit f74624c

Please sign in to comment.