Skip to content

Commit

Permalink
Fixed mint too small amount case (#1525)
Browse files Browse the repository at this point in the history
  • Loading branch information
levonpetrosyan93 authored Feb 16, 2025
1 parent a32ec20 commit 58eac62
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/spark/sparkwallet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -885,6 +885,10 @@ bool CSparkWallet::CreateSparkMintTransactions(
if (singleTxOutputs[i].v <= singleFee) {
singleTxOutputs.erase(singleTxOutputs.begin() + i);
reminder += singleTxOutputs[i].v - singleFee;
if (!singleTxOutputs.size()) {
strFailReason = _("Transaction amount too small");
return false;
}
--i;
}
singleTxOutputs[i].v -= singleFee;
Expand Down

0 comments on commit 58eac62

Please sign in to comment.