better canSign protection

This commit is contained in:
Craig Raw 2020-07-31 10:36:21 +02:00
parent 4c5166a6ea
commit 72a2a8bd1b
2 changed files with 6 additions and 1 deletions

View file

@ -115,4 +115,9 @@ public class FinalizingPSBTWallet extends Wallet {
return new Script(new byte[10]);
}
@Override
public boolean canSign(PSBT psbt) {
return !getSigningNodes(psbt).isEmpty();
}
}

View file

@ -578,7 +578,7 @@ public class Wallet {
}
public boolean canSign(PSBT psbt) {
return !getSigningNodes(psbt).isEmpty();
return isValid() && !getSigningNodes(psbt).isEmpty();
}
/**