mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-26 01:56:44 +00:00
better canSign protection
This commit is contained in:
parent
4c5166a6ea
commit
72a2a8bd1b
2 changed files with 6 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
}
|
|
@ -578,7 +578,7 @@ public class Wallet {
|
|||
}
|
||||
|
||||
public boolean canSign(PSBT psbt) {
|
||||
return !getSigningNodes(psbt).isEmpty();
|
||||
return isValid() && !getSigningNodes(psbt).isEmpty();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue