From 0d39aad91f7e3c939d000b41d5ca1bd914bb72ad Mon Sep 17 00:00:00 2001 From: Manfred Karrer Date: Sat, 7 Jul 2018 18:57:02 +0200 Subject: [PATCH] Apply fixes to stateService --- .../main/dao/bonding/unlock/LockedBsqTxListItem.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/bisq/desktop/main/dao/bonding/unlock/LockedBsqTxListItem.java b/src/main/java/bisq/desktop/main/dao/bonding/unlock/LockedBsqTxListItem.java index c5344d39ef..c2fe23af6e 100644 --- a/src/main/java/bisq/desktop/main/dao/bonding/unlock/LockedBsqTxListItem.java +++ b/src/main/java/bisq/desktop/main/dao/bonding/unlock/LockedBsqTxListItem.java @@ -133,9 +133,10 @@ class LockedBsqTxListItem { public boolean isSpent() { Optional optionalTxOutput = stateService.getLockedTxOutput(txId); - if (optionalTxOutput.isPresent()) - return !stateService.isUnspent(optionalTxOutput.get()); - return true; + if (!optionalTxOutput.isPresent()) + return true; + + return !stateService.isUnspent(optionalTxOutput.get().getKey()); } public TxType getTxType() {