make allinputsfromwallet public

This commit is contained in:
Craig Raw 2020-08-22 17:19:12 +02:00
parent 446eac3483
commit e8bb733ea8

View file

@ -555,10 +555,11 @@ public class Wallet {
* @param txId The txid * @param txId The txid
* @return Whether the transaction was created entirely from inputs that reference outputs that belong to this wallet * @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); BlockTransaction utxoBlkTx = getTransactions().get(txId);
if(utxoBlkTx == null) { 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++) { for(int i = 0; i < utxoBlkTx.getTransaction().getInputs().size(); i++) {