mirror of
https://github.com/Permissionless-Software-Foundation/bch-js.git
synced 2026-09-21 16:51:59 -07:00
fix(getPubKey): Debugging errors with getPubKey()
This commit is contained in:
@@ -197,6 +197,9 @@ class Blockchain {
|
|||||||
)
|
)
|
||||||
return response.data
|
return response.data
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
console.log('Error in bch-js/blockchain.js/getBlockCount()')
|
||||||
|
console.log('blockchain.js restURL: ', this.restURL)
|
||||||
|
|
||||||
if (error.response && error.response.data) throw error.response.data
|
if (error.response && error.response.data) throw error.response.data
|
||||||
else throw error
|
else throw error
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -720,6 +720,8 @@ class ElectrumX {
|
|||||||
return this.sortConfTxs(modifiedTxs, sortingOrder)
|
return this.sortConfTxs(modifiedTxs, sortingOrder)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log('Error in util.js/sort0ConfTxs')
|
console.log('Error in util.js/sort0ConfTxs')
|
||||||
|
console.log('electrumx.js restURL: ', this.restURL)
|
||||||
|
|
||||||
throw err
|
throw err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user