From 1e68182cda9029b714d3e7620bd2102fee9fa180 Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Sun, 20 Oct 2024 17:36:55 +0200 Subject: [PATCH] sender wallets: only test if enabled --- wallets/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wallets/index.js b/wallets/index.js index 0890207e..07fce375 100644 --- a/wallets/index.js +++ b/wallets/index.js @@ -300,7 +300,7 @@ function useConfig (walletDef) { // console.log('Sender', isReadyToSend, 'Receiver', isReadyToReceive, 'enabled', enabled, autoWithdrawThreshold, autoWithdrawMaxFeePercent, priority) // client test - if (!skipTests && isReadyToSend) { + if (!skipTests && isReadyToSend && enabled) { try { // XXX: testSendPayment can return a new config (e.g. lnc) const newerConfig = await walletDef.testSendPayment?.(newClientConfig, { me, logger })