mirror of
https://github.com/bisq-network/bisq.git
synced 2024-11-20 10:22:18 +01:00
Apply fixes to stateService
This commit is contained in:
parent
d9ce3cf55e
commit
0d39aad91f
@ -133,9 +133,10 @@ class LockedBsqTxListItem {
|
||||
|
||||
public boolean isSpent() {
|
||||
Optional<TxOutput> 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() {
|
||||
|
Loading…
Reference in New Issue
Block a user