From 86f7ea64c4dd5e801b82fda9a966a552fb6de473 Mon Sep 17 00:00:00 2001 From: Vlad Stan Date: Mon, 11 Jul 2022 10:22:12 +0300 Subject: [PATCH] fix: use the config mempool.space endpoint --- lnbits/extensions/watchonly/static/js/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lnbits/extensions/watchonly/static/js/index.js b/lnbits/extensions/watchonly/static/js/index.js index 5eee21761..31644f185 100644 --- a/lnbits/extensions/watchonly/static/js/index.js +++ b/lnbits/extensions/watchonly/static/js/index.js @@ -647,7 +647,7 @@ new Vue({ getAddressTxsDelayed: async function (addrData) { const { bitcoin: {addresses: addressesAPI} - } = mempoolJS() + } = mempoolJS({hostname: new URL(this.config.data.mempool_endpoint).hostname}) const fn = async () => addressesAPI.getAddressTxs({ @@ -660,7 +660,7 @@ new Vue({ refreshRecommendedFees: async function () { const { bitcoin: {fees: feesAPI} - } = mempoolJS() + } = mempoolJS({hostname: new URL(this.config.data.mempool_endpoint).hostname}) const fn = async () => feesAPI.getFeesRecommended() this.payment.recommededFees = await retryWithDelay(fn) @@ -668,7 +668,7 @@ new Vue({ getAddressTxsUtxoDelayed: async function (address) { const { bitcoin: {addresses: addressesAPI} - } = mempoolJS() + } = mempoolJS({hostname: new URL(this.config.data.mempool_endpoint).hostname}) const fn = async () => addressesAPI.getAddressTxsUtxo({ @@ -679,7 +679,7 @@ new Vue({ fetchTxHex: async function (txId) { const { bitcoin: {transactions: transactionsAPI} - } = mempoolJS() + } = mempoolJS({hostname: new URL(this.config.data.mempool_endpoint).hostname}) try { const response = await transactionsAPI.getTxHex({txid: txId})