From fae0db0360466aed536f4ce96d357cf579100080 Mon Sep 17 00:00:00 2001 From: TheCharlatan Date: Sat, 13 Jul 2024 11:02:42 +0200 Subject: [PATCH] fuzz: Deglobalize signature cache in sigcache test The body of the fuzz test should ideally be a pure function. If data is persisted in the cache over many iterations, and there is a crash, reproducing it from the input might be difficult. --- src/test/fuzz/script_sigcache.cpp | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/src/test/fuzz/script_sigcache.cpp b/src/test/fuzz/script_sigcache.cpp index 3248ebc4afa..7f73c3706c2 100644 --- a/src/test/fuzz/script_sigcache.cpp +++ b/src/test/fuzz/script_sigcache.cpp @@ -2,44 +2,41 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. -#include -#include +#include +#include #include +#include