// Copyright (c) 2020-2021 The Bitcoin Core developers // 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 #include #include #include #include #include #include #include void initialize_signet() { static const auto testing_setup = MakeNoLogFileContext<>(ChainType::SIGNET); } FUZZ_TARGET_INIT(signet, initialize_signet) { FuzzedDataProvider fuzzed_data_provider{buffer.data(), buffer.size()}; const std::optional block = ConsumeDeserializable(fuzzed_data_provider); if (!block) { return; } (void)CheckSignetBlockSolution(*block, Params().GetConsensus()); (void)SignetTxs::Create(*block, ConsumeScript(fuzzed_data_provider)); }