feat: fix mempool endpint

This commit is contained in:
Vlad Stan
2022-08-03 13:50:07 +03:00
parent 51c8b58fdb
commit 657ed7a37c
14 changed files with 50 additions and 19 deletions
@@ -323,7 +323,9 @@ const watchOnly = async () => {
getAddressTxsDelayed: async function (addrData) {
const {
bitcoin: {addresses: addressesAPI}
} = mempoolJS()
} = mempoolJS({
hostname: new URL(this.config.data.mempool_endpoint).hostname
})
const fn = async () =>
addressesAPI.getAddressTxs({
@@ -336,7 +338,9 @@ const watchOnly = async () => {
getAddressTxsUtxoDelayed: async function (address) {
const {
bitcoin: {addresses: addressesAPI}
} = mempoolJS()
} = mempoolJS({
hostname: new URL(this.config.data.mempool_endpoint).hostname
})
const fn = async () =>
addressesAPI.getAddressTxsUtxo({