mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-26 01:56:44 +00:00
add test to determine if wallet can sign all psbt inputs
This commit is contained in:
parent
b128bb895d
commit
42de57026c
1 changed files with 4 additions and 0 deletions
|
@ -1461,6 +1461,10 @@ public class Wallet extends Persistable implements Comparable<Wallet> {
|
||||||
return isValid() && !getSigningNodes(psbt).isEmpty();
|
return isValid() && !getSigningNodes(psbt).isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean canSignAllInputs(PSBT psbt) {
|
||||||
|
return isValid() && getSigningNodes(psbt).size() == psbt.getPsbtInputs().size();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines which nodes in this wallet can sign which inputs in the provided PSBT
|
* Determines which nodes in this wallet can sign which inputs in the provided PSBT
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue