mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-30 02:21:00 +02:00
fix: use the config mempool.space endpoint
This commit is contained in:
@ -647,7 +647,7 @@ new Vue({
|
|||||||
getAddressTxsDelayed: async function (addrData) {
|
getAddressTxsDelayed: async function (addrData) {
|
||||||
const {
|
const {
|
||||||
bitcoin: {addresses: addressesAPI}
|
bitcoin: {addresses: addressesAPI}
|
||||||
} = mempoolJS()
|
} = mempoolJS({hostname: new URL(this.config.data.mempool_endpoint).hostname})
|
||||||
|
|
||||||
const fn = async () =>
|
const fn = async () =>
|
||||||
addressesAPI.getAddressTxs({
|
addressesAPI.getAddressTxs({
|
||||||
@ -660,7 +660,7 @@ new Vue({
|
|||||||
refreshRecommendedFees: async function () {
|
refreshRecommendedFees: async function () {
|
||||||
const {
|
const {
|
||||||
bitcoin: {fees: feesAPI}
|
bitcoin: {fees: feesAPI}
|
||||||
} = mempoolJS()
|
} = mempoolJS({hostname: new URL(this.config.data.mempool_endpoint).hostname})
|
||||||
|
|
||||||
const fn = async () => feesAPI.getFeesRecommended()
|
const fn = async () => feesAPI.getFeesRecommended()
|
||||||
this.payment.recommededFees = await retryWithDelay(fn)
|
this.payment.recommededFees = await retryWithDelay(fn)
|
||||||
@ -668,7 +668,7 @@ new Vue({
|
|||||||
getAddressTxsUtxoDelayed: async function (address) {
|
getAddressTxsUtxoDelayed: async function (address) {
|
||||||
const {
|
const {
|
||||||
bitcoin: {addresses: addressesAPI}
|
bitcoin: {addresses: addressesAPI}
|
||||||
} = mempoolJS()
|
} = mempoolJS({hostname: new URL(this.config.data.mempool_endpoint).hostname})
|
||||||
|
|
||||||
const fn = async () =>
|
const fn = async () =>
|
||||||
addressesAPI.getAddressTxsUtxo({
|
addressesAPI.getAddressTxsUtxo({
|
||||||
@ -679,7 +679,7 @@ new Vue({
|
|||||||
fetchTxHex: async function (txId) {
|
fetchTxHex: async function (txId) {
|
||||||
const {
|
const {
|
||||||
bitcoin: {transactions: transactionsAPI}
|
bitcoin: {transactions: transactionsAPI}
|
||||||
} = mempoolJS()
|
} = mempoolJS({hostname: new URL(this.config.data.mempool_endpoint).hostname})
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await transactionsAPI.getTxHex({txid: txId})
|
const response = await transactionsAPI.getTxHex({txid: txId})
|
||||||
|
Reference in New Issue
Block a user