Skip to content

Commit 57d31c0

Browse files
UdjinM6laanwj
andauthored
Merge bitcoin#9572: Skip witness sighash cache for non-segwit transactions (#4814)
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 Co-authored-by: Wladimir J. van der Laan <[email protected]>
1 parent ff2f768 commit 57d31c0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/script/interpreter.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,10 +1446,6 @@ void PrecomputedTransactionData::Init(const T& txTo, std::vector<CTxOut>&& spent
14461446

14471447
m_spent_outputs = std::move(spent_outputs);
14481448

1449-
hashPrevouts = SHA256Uint256(GetPrevoutsSHA256(txTo));
1450-
hashSequence = SHA256Uint256(GetSequencesSHA256(txTo));
1451-
hashOutputs = SHA256Uint256(GetOutputsSHA256(txTo));
1452-
14531449
m_ready = true;
14541450
}
14551451

0 commit comments

Comments
 (0)