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

View file

@ -282,6 +282,7 @@ extraJavaModuleInfo {
module('jul-to-slf4j-1.7.30.jar', 'org.slf4j.jul.to.slf4j', '1.7.30') {
exports('org.slf4j.bridge')
requires('java.logging')
requires('org.slf4j')
}
module('jeromq-0.5.0.jar', 'jeromq', '0.5.0') {
exports('org.zeromq')

2
drongo

@ -1 +1 @@
Subproject commit 9d3c02d18440b82cb261a89f372da72dd0f87a1f
Subproject commit 107a165fc1db84f80febbe358aaab16b2764a5d5

View file

@ -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