aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz
diff options
context:
space:
mode:
authorPieter Wuille <pieter@wuille.net>2020-09-11 14:33:52 -0700
committerPieter Wuille <pieter@wuille.net>2020-10-12 17:18:15 -0700
commit330de894a9a48515d9a473448b6c67adc3d188be (patch)
tree0634f0d38e9d8c0fd668c850aa6c701872ba3b8d /src/test/fuzz
parent8bbed4b7acf4c76eaea8c0e10f3cbf6ba4e53809 (diff)
Use ScriptExecutionData to pass through annex hash
Instead of recomputing the annex hash every time a signature is verified, compute it once and cache it in a new ScriptExecutionData structure.
Diffstat (limited to 'src/test/fuzz')
-rw-r--r--src/test/fuzz/signature_checker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/signature_checker.cpp b/src/test/fuzz/signature_checker.cpp
index f538c9272e..e121c89665 100644
--- a/src/test/fuzz/signature_checker.cpp
+++ b/src/test/fuzz/signature_checker.cpp
@@ -33,7 +33,7 @@ public:
return m_fuzzed_data_provider.ConsumeBool();
}
- bool CheckSchnorrSignature(Span<const unsigned char> sig, Span<const unsigned char> pubkey, SigVersion sigversion, ScriptError* serror = nullptr) const override
+ bool CheckSchnorrSignature(Span<const unsigned char> sig, Span<const unsigned char> pubkey, SigVersion sigversion, const ScriptExecutionData& execdata, ScriptError* serror = nullptr) const override
{
return m_fuzzed_data_provider.ConsumeBool();
}