Skip to content

Commit 358562b

Browse files
jtimonsipa
authored andcommitted
Remove unused function main:VerifySignature
1 parent e5fc663 commit 358562b

File tree

3 files changed

+1
-8
lines changed

3 files changed

+1
-8
lines changed

src/main.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1372,11 +1372,6 @@ bool CScriptCheck::operator()() const {
13721372
return true;
13731373
}
13741374

1375-
bool VerifySignature(const CCoins& txFrom, const CTransaction& txTo, unsigned int nIn, unsigned int flags, int nHashType)
1376-
{
1377-
return CScriptCheck(txFrom, txTo, nIn, flags, nHashType)();
1378-
}
1379-
13801375
bool CheckInputs(const CTransaction& tx, CValidationState &state, const CCoinsViewCache &inputs, bool fScriptChecks, unsigned int flags, std::vector<CScriptCheck> *pvChecks)
13811376
{
13821377
if (!tx.IsCoinBase())

src/main.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,6 @@ int64_t GetBlockValue(int nHeight, int64_t nFees);
174174

175175
/** Create a new block index entry for a given block hash */
176176
CBlockIndex * InsertBlockIndex(uint256 hash);
177-
/** Verify a signature */
178-
bool VerifySignature(const CCoins& txFrom, const CTransaction& txTo, unsigned int nIn, unsigned int flags, int nHashType);
179177
/** Abort with a message */
180178
bool AbortNode(const std::string &msg);
181179
/** Get statistics from node state */

src/test/script_P2SH_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ BOOST_AUTO_TEST_CASE(sign)
113113
{
114114
CScript sigSave = txTo[i].vin[0].scriptSig;
115115
txTo[i].vin[0].scriptSig = txTo[j].vin[0].scriptSig;
116-
bool sigOK = VerifySignature(CCoins(txFrom, 0), txTo[i], 0, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC, 0);
116+
bool sigOK = CScriptCheck(CCoins(txFrom, 0), txTo[i], 0, SCRIPT_VERIFY_P2SH | SCRIPT_VERIFY_STRICTENC, 0)();
117117
if (i == j)
118118
BOOST_CHECK_MESSAGE(sigOK, strprintf("VerifySignature %d %d", i, j));
119119
else

0 commit comments

Comments
 (0)