sort split in split_wallet_state (#653)

This commit is contained in:
elnosh
2024-11-01 04:22:12 -05:00
committed by GitHub
parent fc9ed7c1fb
commit 21418a114a

View File

@@ -476,6 +476,7 @@ class Wallet(
remaining_amount = amount - sum(amounts)
if remaining_amount > 0:
amounts += amount_split(remaining_amount)
amounts.sort()
logger.debug(f"Amounts we want: {amounts}")
if sum(amounts) != amount: