Skip precompute sighash for transactions without witness

This commit is contained in:
Johnson Lau
2017-01-18 16:12:26 +08:00
parent 6696b4635c
commit 0da49b5926
2 changed files with 12 additions and 6 deletions
+1
View File
@@ -113,6 +113,7 @@ bool CheckSignatureEncoding(const std::vector<unsigned char> &vchSig, unsigned i
struct PrecomputedTransactionData
{
uint256 hashPrevouts, hashSequence, hashOutputs;
bool ready = false;
PrecomputedTransactionData(const CTransaction& tx);
};