aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjtimon <jtimon@monetize.io>2014-07-18 15:41:55 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2014-09-12 20:03:03 +0200
commit358562b65189dce982ad30a1c158606a540e9bcb (patch)
tree73cf202c760634d77197ac000dfcef7ff3bd304e /src
parente5fc6631b9ca452eaacc8f978b3c5ffe2ef38e77 (diff)
downloadbitcoin-358562b65189dce982ad30a1c158606a540e9bcb.tar.xz
Remove unused function main:VerifySignature
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp5
-rw-r--r--src/main.h2
-rw-r--r--src/test/script_P2SH_tests.cpp2
3 files changed, 1 insertions, 8 deletions
diff --git a/src/main.cpp b/src/main.cpp
index f978254961..2163b90bfe 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1372,11 +1372,6 @@ bool CScriptCheck::operator()() const {
return true;
}
-bool VerifySignature(const CCoins& txFrom, const CTransaction& txTo, unsigned int nIn, unsigned int flags, int nHashType)
-{
- return CScriptCheck(txFrom, txTo, nIn, flags, nHashType)();
-}
-
bool CheckInputs(const CTransaction& tx, CValidationState &state, const CCoinsViewCache &inputs, bool fScriptChecks, unsigned int flags, std::vector<CScriptCheck> *pvChecks)
{
if (!tx.IsCoinBase())
diff --git a/src/main.h b/src/main.h
index d340fd0b6a..f7682c213c 100644
--- a/src/main.h
+++ b/src/main.h
@@ -174,8 +174,6 @@ int64_t GetBlockValue(int nHeight, int64_t nFees);
/** Create a new block index entry for a given block hash */
CBlockIndex * InsertBlockIndex(uint256 hash);
-/** Verify a signature */
-bool VerifySignature(const CCoins& txFrom, const CTransaction& txTo, unsigned int nIn, unsigned int flags, int nHashType);
/** Abort with a message */
bool AbortNode(const std::string &msg);
/** Get statistics from node state */
diff --git a/src/test/script_P2SH_tests.cpp b/src/test/script_P2SH_tests.cpp
index f99002017f..ef63d9d349 100644
--- a/src/test/script_P2SH_tests.cpp
+++ b/src/test/script_P2SH_tests.cpp
@@ -113,7 +113,7 @@ BOOST_AUTO_TEST_CASE(sign)
{
CScript sigSave = txTo[i].vin[0].scriptSig;
txTo[i].vin[0].scriptSig = txTo[j].vin[0].scriptSig;
- bool sigOK = VerifySignature(CCoins(txFrom, 0), txTo[i], 0, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC, 0);
+ bool sigOK = CScriptCheck(CCoins(txFrom, 0), txTo[i], 0, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC, 0)();
if (i == j)
BOOST_CHECK_MESSAGE(sigOK, strprintf("VerifySignature %d %d", i, j));
else