mirror of
https://github.com/Permissionless-Software-Foundation/ipfs-bch-wallet-service.git
synced 2026-09-21 16:52:03 -07:00
Merge pull request #159 from Permissionless-Software-Foundation/ct-unstable
Updating dependencies
This commit is contained in:
Generated
+329
-292
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -34,7 +34,7 @@
|
|||||||
"@libp2p/keychain": "4.1.5",
|
"@libp2p/keychain": "4.1.5",
|
||||||
"@libp2p/logger": "4.0.20",
|
"@libp2p/logger": "4.0.20",
|
||||||
"@libp2p/tcp": "9.1.5",
|
"@libp2p/tcp": "9.1.5",
|
||||||
"@libp2p/webrtc": "4.0.34",
|
"@libp2p/webrtc": "4.1.7",
|
||||||
"@libp2p/websockets": "8.2.0",
|
"@libp2p/websockets": "8.2.0",
|
||||||
"@multiformats/multiaddr": "12.3.0",
|
"@multiformats/multiaddr": "12.3.0",
|
||||||
"axios": "0.27.2",
|
"axios": "0.27.2",
|
||||||
@@ -60,7 +60,7 @@
|
|||||||
"koa2-ratelimit": "0.9.1",
|
"koa2-ratelimit": "0.9.1",
|
||||||
"libp2p": "1.9.1",
|
"libp2p": "1.9.1",
|
||||||
"line-reader": "0.4.0",
|
"line-reader": "0.4.0",
|
||||||
"minimal-slp-wallet": "5.11.3",
|
"minimal-slp-wallet": "5.12.0",
|
||||||
"mongoose": "5.13.14",
|
"mongoose": "5.13.14",
|
||||||
"node-fetch": "npm:@achingbrain/node-fetch@2.6.7",
|
"node-fetch": "npm:@achingbrain/node-fetch@2.6.7",
|
||||||
"nodemailer": "6.7.5",
|
"nodemailer": "6.7.5",
|
||||||
|
|||||||
@@ -175,25 +175,15 @@ class IpfsAdapter {
|
|||||||
console.log('Helia (IPFS) node IS NOT configured as Circuit Relay')
|
console.log('Helia (IPFS) node IS NOT configured as Circuit Relay')
|
||||||
}
|
}
|
||||||
|
|
||||||
// Configure transports
|
const transports = [
|
||||||
let transports
|
tcp(),
|
||||||
if (process.env.CONNECT_PREF === 'direct') {
|
webSockets(),
|
||||||
transports = [
|
circuitRelayTransport({
|
||||||
tcp(),
|
discoverRelays: 3,
|
||||||
webSockets(),
|
reservationConcurrency: 3
|
||||||
webRTC()
|
}),
|
||||||
]
|
webRTC()
|
||||||
} else {
|
]
|
||||||
transports = [
|
|
||||||
tcp(),
|
|
||||||
webSockets(),
|
|
||||||
circuitRelayTransport({
|
|
||||||
discoverRelays: 3,
|
|
||||||
reservationConcurrency: 3
|
|
||||||
}),
|
|
||||||
webRTC()
|
|
||||||
]
|
|
||||||
}
|
|
||||||
|
|
||||||
// libp2p is the networking layer that underpins Helia
|
// libp2p is the networking layer that underpins Helia
|
||||||
const libp2p = await this.createLibp2p({
|
const libp2p = await this.createLibp2p({
|
||||||
|
|||||||
Reference in New Issue
Block a user