mirror of
https://github.com/sparrowwallet/drongo.git
synced 2024-12-26 10:06:45 +00:00
make allinputsfromwallet public
This commit is contained in:
parent
446eac3483
commit
e8bb733ea8
1 changed files with 3 additions and 2 deletions
|
@ -555,10 +555,11 @@ public class Wallet {
|
|||
* @param txId The txid
|
||||
* @return Whether the transaction was created entirely from inputs that reference outputs that belong to this wallet
|
||||
*/
|
||||
private boolean allInputsFromWallet(Sha256Hash txId) {
|
||||
public boolean allInputsFromWallet(Sha256Hash txId) {
|
||||
BlockTransaction utxoBlkTx = getTransactions().get(txId);
|
||||
if(utxoBlkTx == null) {
|
||||
throw new IllegalArgumentException("Provided txId was not a wallet transaction");
|
||||
//Provided txId was not a wallet transaction
|
||||
return false;
|
||||
}
|
||||
|
||||
for(int i = 0; i < utxoBlkTx.getTransaction().getInputs().size(); i++) {
|
||||
|
|
Loading…
Reference in a new issue