This commit is contained in:
Chris Troutner
2022-05-16 13:32:46 -07:00
parent ccbe9a6707
commit b3011bcb69
2 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -39,7 +39,7 @@ class IPFS {
// Start ipfs-coord
this.ipfsCoordAdapter = new this.IpfsCoordAdapter({
ipfs: this.ipfs,
ipfs: this.ipfs
// eventEmitter: this.eventEmitter
})
await this.ipfsCoordAdapter.start()
+3 -5
View File
@@ -99,8 +99,6 @@ class JSONRPC {
}
console.log(`parsedData: ${JSON.stringify(parsedData, null, 2)}`)
// Added the property "from" to the parsedData object;
// necessary for calculating rate limits (based on the IPFS ID).
parsedData.from = from
@@ -110,11 +108,11 @@ class JSONRPC {
// Forward data on to bch adapter if this is the response of a BCH query.
try {
if(parsedData.payload.result.method === 'bch') {
console.log(`routing to BCH adapter`)
if (parsedData.payload.result.method === 'bch') {
console.log('routing to BCH adapter')
retObj = await _this.adapters.bch.rpcHandler(parsedData)
}
} catch(err) {
} catch (err) {
/* exit quietly */
}