From 58b18fa7247757bd64b55d74767cc69678fa3bc6 Mon Sep 17 00:00:00 2001 From: Mike Hearn Date: Fri, 5 Aug 2011 20:34:55 +0000 Subject: [PATCH] Delete the unused/incomplete Transaction.verifyInput method. --- src/com/google/bitcoin/core/Transaction.java | 28 -------------------- 1 file changed, 28 deletions(-) diff --git a/src/com/google/bitcoin/core/Transaction.java b/src/com/google/bitcoin/core/Transaction.java index 72f988de5..2e2cda10c 100644 --- a/src/com/google/bitcoin/core/Transaction.java +++ b/src/com/google/bitcoin/core/Transaction.java @@ -404,34 +404,6 @@ public class Transaction extends Message implements Serializable { throw new RuntimeException(e); // Cannot happen. } } - - /** - * Given a named input and the transaction output it connects to, runs the script formed from the - * concatenation of the input and output scripts, returning true if the link is valid. In - * this way, we prove that the creator of this transaction is allowed to redeem the output - * of the connectedTx and thus spend the money.

- * - * WARNING: NOT FINISHED

- * - * @param inputIndex Which input to verify. - * @param connectedTx The Transaction that the input is connected to. - */ - @SuppressWarnings("unused") - public boolean verifyInput(int inputIndex, Transaction connectedTx) throws ScriptException { - TransactionInput input = inputs.get(inputIndex); - //int outputIndex = (int) input.outpoint.index; - //assert outputIndex >= 0 && outputIndex < connectedTx.outputs.size(); - //Script outScript = connectedTx.outputs.get(outputIndex).getScriptPubKey(); - Script inScript = input.getScriptSig(); - //Script script = Script.join(inScript, outScript); - //if (script.run(this)) { - // LOG("Transaction input successfully verified!"); - // return true; - //} - byte[] pubkey = inScript.getPubKey(); - - return false; - } @Override public void bitcoinSerializeToStream(OutputStream stream) throws IOException {