From f1136200a67fc1df894d45fba51b40f748e0b889 Mon Sep 17 00:00:00 2001 From: Pieter Wuille Date: Sat, 8 Sep 2012 17:33:10 +0200 Subject: Move VerifySignature to main --- src/script.cpp | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/script.cpp') diff --git a/src/script.cpp b/src/script.cpp index f65508aacc..52a8f2c117 100644 --- a/src/script.cpp +++ b/src/script.cpp @@ -1723,17 +1723,6 @@ bool SignSignature(const CKeyStore &keystore, const CTransaction& txFrom, CTrans return SignSignature(keystore, txout.scriptPubKey, txTo, nIn, nHashType); } -bool VerifySignature(const CCoins& txFrom, const CTransaction& txTo, unsigned int nIn, unsigned int flags, int nHashType) -{ - assert(nIn < txTo.vin.size()); - const CTxIn& txin = txTo.vin[nIn]; - if (txin.prevout.n >= txFrom.vout.size()) - return false; - const CTxOut& txout = txFrom.vout[txin.prevout.n]; - - return VerifyScript(txin.scriptSig, txout.scriptPubKey, txTo, nIn, flags, nHashType); -} - static CScript PushAll(const vector& values) { CScript result; -- cgit v1.2.3