mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Merge pull request #4555
6dcfda2Don't pass nHashType to EvalScript nor CheckSig (jtimon)2b23a87Don't pass nHashType to VerifyScript (jtimon)ce3649fbRemove CScriptCheck::nHashType (was always 0) (jtimon)358562bRemove unused function main:VerifySignature (jtimon)
This commit is contained in:
10
src/main.h
10
src/main.h
@@ -176,8 +176,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 */
|
||||
@@ -344,13 +342,12 @@ private:
|
||||
const CTransaction *ptxTo;
|
||||
unsigned int nIn;
|
||||
unsigned int nFlags;
|
||||
int nHashType;
|
||||
|
||||
public:
|
||||
CScriptCheck(): ptxTo(0), nIn(0), nFlags(0), nHashType(0) {}
|
||||
CScriptCheck(const CCoins& txFromIn, const CTransaction& txToIn, unsigned int nInIn, unsigned int nFlagsIn, int nHashTypeIn) :
|
||||
CScriptCheck(): ptxTo(0), nIn(0), nFlags(0) {}
|
||||
CScriptCheck(const CCoins& txFromIn, const CTransaction& txToIn, unsigned int nInIn, unsigned int nFlagsIn) :
|
||||
scriptPubKey(txFromIn.vout[txToIn.vin[nInIn].prevout.n].scriptPubKey),
|
||||
ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn), nHashType(nHashTypeIn) { }
|
||||
ptxTo(&txToIn), nIn(nInIn), nFlags(nFlagsIn) { }
|
||||
|
||||
bool operator()() const;
|
||||
|
||||
@@ -359,7 +356,6 @@ public:
|
||||
std::swap(ptxTo, check.ptxTo);
|
||||
std::swap(nIn, check.nIn);
|
||||
std::swap(nFlags, check.nFlags);
|
||||
std::swap(nHashType, check.nHashType);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user