Skip to content

Commit

Permalink
Fixed the sweep case when selected utxos are present
Browse files Browse the repository at this point in the history
  • Loading branch information
amitx13 committed Aug 30, 2024
1 parent cd7c2c7 commit ebad840
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/jmclient/taker_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit ebad840

Please sign in to comment.