Merge pull request #47 from Permissionless-Software-Foundation/ct-unstable

fix(ipfs): HOP setting is controlled by config.isCircuitRelay
This commit is contained in:
Chris Troutner
2021-09-28 15:48:44 -07:00
committed by GitHub
+5 -1
View File
@@ -36,7 +36,7 @@ class IpfsAdapter {
relay: {
enabled: true, // enable circuit relay dialer and listener
hop: {
enabled: true // enable circuit relay HOP (make this node a relay)
enabled: config.isCircuitRelay // enable circuit relay HOP (make this node a relay)
}
},
pubsub: true, // enable pubsub
@@ -61,6 +61,10 @@ class IpfsAdapter {
// Set the 'server' profile so the node does not scan private networks.
await this.ipfs.config.profiles.apply('server')
// Debugging: Display IPFS config settings.
// const configSettings = await this.ipfs.config.getAll()
// console.log(`configSettings: ${JSON.stringify(configSettings, null, 2)}`)
// Signal that this adapter is ready.
this.isReady = true