mirror of
https://codeberg.org/anoncontributorxmr/mysu.git
synced 2024-11-22 07:22:26 +00:00
Prevent locked UTXOs from being selected for spending by the UTXO selector
This commit is contained in:
parent
9b4cd9860a
commit
452cc12c8f
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ public class UTXOService extends ServiceBase {
|
|||
Collections.sort(utxos);
|
||||
//loop through each utxo
|
||||
for (CoinsInfo coinsInfo : utxos) {
|
||||
if(!coinsInfo.isSpent()) { //filter out spent outputs
|
||||
if(!coinsInfo.isSpent() && coinsInfo.isUnlocked()) { //filter out spent and locked outputs
|
||||
if (sendAll) {
|
||||
// if send all, add all utxos and set amount to send all
|
||||
selectedUtxos.add(coinsInfo.getKeyImage());
|
||||
|
|
Loading…
Reference in a new issue