aboutsummaryrefslogtreecommitdiff
path: root/src/script/interpreter.h
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2017-10-05 19:39:24 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2017-10-05 19:49:42 +0200
commit17f2acedbe078f179556f4550eca547726f087e1 (patch)
tree7b098b3217620a3699353c4ea5e52de91f6f726d /src/script/interpreter.h
parent9e8ef9d99179644ef55f2940bda94b9d65e1ec51 (diff)
parent0da49b5926b678b2ec35fabe37034f3d2e8385f4 (diff)
Merge #9572: Skip witness sighash cache for non-segwit transactions
0da49b5 Skip precompute sighash for transactions without witness (Johnson Lau) Pull request description: This saves unnecessary hash caching for non-segwit transactions, but I am not sure if the difference is noticeable. Tree-SHA512: 5cd733a729a52a45781510b3572b26e76837a94155caa14311c6d23a27a12e9613ff278dfc2592e21f640202782f22c5ad00fca85c4de5efacaa617c48ccb08d
Diffstat (limited to 'src/script/interpreter.h')
-rw-r--r--src/script/interpreter.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/interpreter.h b/src/script/interpreter.h
index f845e1943b..1cb9cc7899 100644
--- a/src/script/interpreter.h
+++ b/src/script/interpreter.h
@@ -113,6 +113,7 @@ bool CheckSignatureEncoding(const std::vector<unsigned char> &vchSig, unsigned i
struct PrecomputedTransactionData
{
uint256 hashPrevouts, hashSequence, hashOutputs;
+ bool ready = false;
explicit PrecomputedTransactionData(const CTransaction& tx);
};