From 9d803413574189a08a8c55a3fcec517f313f6cea Mon Sep 17 00:00:00 2001 From: Chris Troutner Date: Mon, 13 Feb 2023 07:22:29 -0800 Subject: [PATCH] debugging preferred provider --- src/adapters/ipfs/ipfs-coord.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/adapters/ipfs/ipfs-coord.js b/src/adapters/ipfs/ipfs-coord.js index 31594d9..b0802df 100644 --- a/src/adapters/ipfs/ipfs-coord.js +++ b/src/adapters/ipfs/ipfs-coord.js @@ -214,6 +214,8 @@ class IpfsCoordAdapter { // providers. This method is called periodically by a timer-interval. pollForBchServices () { try { + console.log('pollForBchServices() polling for BCH service') + // An array of IPFS IDs of other nodes in the coordination pubsub channel. const peers = _this.ipfsCoord.thisNode.peerList // console.log(`peers: ${JSON.stringify(peers, null, 2)}`) @@ -255,6 +257,8 @@ class IpfsCoordAdapter { console.log(`---->BCH wallet service selected: ${thisPeer}`) } + console.log('preferredProvider: ', _this.config.preferredProvider) + // If a preferred provider is set in the config file, then connect // to the preferred provider when it's discovered. if ( @@ -264,6 +268,8 @@ class IpfsCoordAdapter { _this.state.selectedServiceProvider = thisPeer } + console.log('selectedServiceProvider: ', _this.state.selectedServiceProvider) + // Check if the peer has already been added to the list of providers. const alreadyExists = _this.state.serviceProviders.filter( (x) => x === thisPeer