From 6b3fc78fc9ad12b3611db4c6afbad7a586bf1a83 Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Wed, 29 Jun 2022 16:50:36 -0700 Subject: [PATCH] fix(p2wdb): Working with v3 P2WDB --- config/env/common.js | 2 +- src/adapters/index.js | 6 +++--- src/controllers/index.js | 7 +------ 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/config/env/common.js b/config/env/common.js index 266b8ae..2063f4d 100644 --- a/config/env/common.js +++ b/config/env/common.js @@ -85,7 +85,7 @@ module.exports = { webhookService: process.env.WEBHOOKSERVICE ? process.env.WEBHOOKSERVICE : 'http://localhost:5010/webhook', // P2WDB. - p2wdbAppId: process.env.APP_ID ? process.env.APP_ID : 'bch-dex-test557', + p2wdbAppId: process.env.APP_ID ? process.env.APP_ID : 'bch-dex-001', webhookTarget: process.env.WEBHOOKTARGET ? process.env.WEBHOOKTARGET : 'http://localhost:5700/p2wdb', diff --git a/src/adapters/index.js b/src/adapters/index.js index 27c059e..70fea70 100644 --- a/src/adapters/index.js +++ b/src/adapters/index.js @@ -54,9 +54,9 @@ class Adapters { // Start the IPFS node. // Do not start these adapters if this is an e2e test. - if (this.config.env !== 'test') { - await this.ipfs.start() - } + // if (this.config.env !== 'test') { + // await this.ipfs.start() + // } // Open the wallet file const walletData = await this.wallet.openWallet() diff --git a/src/controllers/index.js b/src/controllers/index.js index fd25223..47d35bc 100644 --- a/src/controllers/index.js +++ b/src/controllers/index.js @@ -45,13 +45,8 @@ class Controllers { // Attach any other controllers other than REST API controllers. async attachControllers (app) { - // Wait for any startup processes to complete for the Adapters libraries. - // await this.adapters.start() - // Attach the REST controllers to the Koa app. - // this.attachRESTControllers(app) - - this.attachRPCControllers() + // this.attachRPCControllers() } // Add the JSON RPC router to the ipfs-coord adapter.