Browse Source

fix detection of input type on finalizing psbt wallet

terminal
Craig Raw 4 years ago
parent
commit
324540009a
  1. 1
      build.gradle
  2. 2
      drongo
  3. 2
      src/main/java/com/sparrowwallet/sparrow/transaction/InputForm.java

1
build.gradle

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

2
src/main/java/com/sparrowwallet/sparrow/transaction/InputForm.java

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

Loading…
Cancel
Save