sender wallets: only test if enabled

This commit is contained in:
Riccardo Balbo 2024-10-20 17:36:55 +02:00 committed by k00b
parent 2cfe851046
commit 1e68182cda
1 changed files with 1 additions and 1 deletions

View File

@ -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 })