From 0da49b5926b678b2ec35fabe37034f3d2e8385f4 Mon Sep 17 00:00:00 2001 From: Johnson Lau Date: Wed, 18 Jan 2017 16:12:26 +0800 Subject: Skip precompute sighash for transactions without witness --- src/script/interpreter.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/script/interpreter.h') diff --git a/src/script/interpreter.h b/src/script/interpreter.h index 79894c5300..c6385cb519 100644 --- a/src/script/interpreter.h +++ b/src/script/interpreter.h @@ -113,6 +113,7 @@ bool CheckSignatureEncoding(const std::vector &vchSig, unsigned i struct PrecomputedTransactionData { uint256 hashPrevouts, hashSequence, hashOutputs; + bool ready = false; PrecomputedTransactionData(const CTransaction& tx); }; -- cgit v1.2.3