From ebad840966b8f4df5b072babf2fc3de9a250b9f0 Mon Sep 17 00:00:00 2001 From: amitx13 Date: Fri, 30 Aug 2024 17:48:23 +0530 Subject: [PATCH] Fixed the sweep case when selected utxos are present --- src/jmclient/taker_utils.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/jmclient/taker_utils.py b/src/jmclient/taker_utils.py index c5512d60f..b1e3c9a2c 100644 --- a/src/jmclient/taker_utils.py +++ b/src/jmclient/taker_utils.py @@ -125,6 +125,10 @@ def direct_send(wallet_service: WalletService, txtype = wallet_service.get_txtype() + if is_sweep and selected_utxos: + log.error("Selected UTXOs are not allowed when sweeping.") + return False + if is_sweep: #doing a sweep destination = dest_and_amounts[0][0]