From 452cc12c8fc375acbe086da119860fccb423f481 Mon Sep 17 00:00:00 2001 From: pokkst Date: Fri, 23 Sep 2022 02:35:02 -0500 Subject: [PATCH] Prevent locked UTXOs from being selected for spending by the UTXO selector --- app/src/main/java/net/mynero/wallet/service/UTXOService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/net/mynero/wallet/service/UTXOService.java b/app/src/main/java/net/mynero/wallet/service/UTXOService.java index 0f091f0..c608686 100644 --- a/app/src/main/java/net/mynero/wallet/service/UTXOService.java +++ b/app/src/main/java/net/mynero/wallet/service/UTXOService.java @@ -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());