From e8bb733ea8a6e476982e5ea78c288105d0bd8644 Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Sat, 22 Aug 2020 17:19:12 +0200 Subject: [PATCH] make allinputsfromwallet public --- src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java b/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java index 2904b79..273cdd5 100644 --- a/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java +++ b/src/main/java/com/sparrowwallet/drongo/wallet/Wallet.java @@ -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++) {