diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-11-23 18:06:23 +0100 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-11-23 17:57:53 +0100 |
commit | faf1fb207fb6e9a12c864074f8c40d5922d93ff4 (patch) | |
tree | ff41fe5df854b6975dfe2c183b8097057b44fa9d | |
parent | fa71285b7301b2993bcc68525649716afbd9abf8 (diff) | |
download | bitcoin-faf1fb207fb6e9a12c864074f8c40d5922d93ff4.tar.xz |
Fix IWYU for the script_flags fuzz target
Also, export script_error.h from interpreter.h, because there should
rarely be a case where script_error.h is included without interpreter.h
-rw-r--r-- | src/script/interpreter.h | 16 | ||||
-rw-r--r-- | src/test/fuzz/script_flags.cpp | 9 |
2 files changed, 16 insertions, 9 deletions
diff --git a/src/script/interpreter.h b/src/script/interpreter.h index ac1013302d..836c2e7982 100644 --- a/src/script/interpreter.h +++ b/src/script/interpreter.h @@ -6,21 +6,23 @@ #ifndef BITCOIN_SCRIPT_INTERPRETER_H #define BITCOIN_SCRIPT_INTERPRETER_H +#include <consensus/amount.h> #include <hash.h> -#include <script/script_error.h> -#include <span.h> #include <primitives/transaction.h> +#include <script/script_error.h> // IWYU pragma: export +#include <span.h> +#include <uint256.h> +#include <cstddef> +#include <cstdint> #include <optional> #include <vector> -#include <stdint.h> class CPubKey; -class XOnlyPubKey; class CScript; -class CTransaction; -class CTxOut; -class uint256; +class CScriptNum; +class XOnlyPubKey; +struct CScriptWitness; /** Signature hash types/flags */ enum diff --git a/src/test/fuzz/script_flags.cpp b/src/test/fuzz/script_flags.cpp index e324dee36f..accb32f1cc 100644 --- a/src/test/fuzz/script_flags.cpp +++ b/src/test/fuzz/script_flags.cpp @@ -3,12 +3,17 @@ // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <consensus/amount.h> -#include <pubkey.h> +#include <primitives/transaction.h> #include <script/interpreter.h> +#include <serialize.h> #include <streams.h> +#include <test/fuzz/fuzz.h> #include <test/util/script.h> -#include <test/fuzz/fuzz.h> +#include <cassert> +#include <ios> +#include <utility> +#include <vector> FUZZ_TARGET(script_flags) { |