fix detection of input type on finalizing psbt wallet

This commit is contained in:
Craig Raw
2021-06-28 13:08:44 +02:00
parent 1c1f90344f
commit 324540009a
3 changed files with 3 additions and 2 deletions
@@ -48,7 +48,7 @@ public class InputForm extends IndexedTransactionForm {
public boolean isWalletTxo() {
TransactionInput txInput = getTransactionInput();
return getSigningWallet() != null && getSigningWallet().getWalletTxos().keySet().stream().anyMatch(ref -> ref.getHash().equals(txInput.getOutpoint().getHash()) && ref.getIndex() == txInput.getOutpoint().getIndex());
return getSigningWallet() != null && getSigningWallet().isWalletTxo(txInput);
}
@Override