Alternative to #8422.
This version simply precomputes the 3 overall hashes once per transaction, resulting in no more cache that needs updating during validation.
Original version by Nicolas Dorier. Precomputing version by Pieter Wuille.
Prefer the simplicity of this one.
code review ACK and lightly tACK(it syncs testnet) https://github.com/bitcoin/bitcoin/pull/8524/commits/ab48c5e72156b34300db4a6521cb3c9969be3937
97@@ -98,13 +98,20 @@ enum
98
99 bool CheckSignatureEncoding(const std::vector<unsigned char> &vchSig, unsigned int flags, ScriptError* serror);
100
101+struct CachedHashes
CachedTransactionHashes
?
It’s actually not a cache either anymore.
What about PrecomputedTransactionData ?
sipa
NicolasDorier
instagibbs
dcousens
laanwj
btcdrak
Milestone
0.13.1