Skip to content

Commit af7c8ff

Browse files
committed
fix(getPubKey): Debugging errors with getPubKey()
1 parent 2e04548 commit af7c8ff

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/blockchain.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ class Blockchain {
197197
)
198198
return response.data
199199
} catch (error) {
200+
console.log('Error in bch-js/blockchain.js/getBlockCount()')
201+
console.log('blockchain.js restURL: ', this.restURL)
202+
200203
if (error.response && error.response.data) throw error.response.data
201204
else throw error
202205
}

src/electrumx.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -720,6 +720,8 @@ class ElectrumX {
720720
return this.sortConfTxs(modifiedTxs, sortingOrder)
721721
} catch (err) {
722722
console.log('Error in util.js/sort0ConfTxs')
723+
console.log('electrumx.js restURL: ', this.restURL)
724+
723725
throw err
724726
}
725727
}

0 commit comments

Comments
 (0)