Skip to content

Commit b9b5d82

Browse files
committed
don't use change coins just yet
1 parent d21b606 commit b9b5d82

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/wallet/wallet.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,9 @@ async def select_coins(self, amount) -> Optional[Set[Coin]]:
168168
# but unconfirmed, and we are waiting for the change. (unconfirmed_additions)
169169
unconfirmed_additions = None
170170
if sum < amount:
171+
raise ValueError(
172+
"Can't make this transaction at the moment. Waiting for the change from the previous transaction."
173+
)
171174
unconfirmed_additions = await self.wallet_state_manager.unconfirmed_additions_for_wallet(
172175
self.wallet_info.id
173176
)

0 commit comments

Comments
 (0)