From fc68188e3227dc0912ef3c508f6d45ff1d7614ee Mon Sep 17 00:00:00 2001 From: Kittywhiskers Van Gogh <63189531+kwvg@users.noreply.github.com> Date: Wed, 22 Jun 2022 20:44:43 +0800 Subject: [PATCH 01/21] merge bitcoin#25447: add low-level target for txorphanage --- ci/dash/lint-tidy.sh | 1 + src/Makefile.test.include | 1 + src/test/fuzz/txorphan.cpp | 146 +++++++++++++++++++++++++++++++++++++ 3 files changed, 148 insertions(+) create mode 100644 src/test/fuzz/txorphan.cpp diff --git a/ci/dash/lint-tidy.sh b/ci/dash/lint-tidy.sh index 7786a58f7ef9..f6fcaf19e06d 100755 --- a/ci/dash/lint-tidy.sh +++ b/ci/dash/lint-tidy.sh @@ -20,6 +20,7 @@ iwyu_tool.py \ "src/init" \ "src/rpc/fees.cpp" \ "src/rpc/signmessage.cpp" \ + "src/test/fuzz/txorphan.cpp" \ "src/util/bip32.cpp" \ "src/util/bytevectorhash.cpp" \ "src/util/error.cpp" \ diff --git a/src/Makefile.test.include b/src/Makefile.test.include index bed7081dd6d4..010fdfeb35bc 100644 --- a/src/Makefile.test.include +++ b/src/Makefile.test.include @@ -363,6 +363,7 @@ test_fuzz_fuzz_SOURCES = \ test/fuzz/tx_in.cpp \ test/fuzz/tx_out.cpp \ test/fuzz/tx_pool.cpp \ + test/fuzz/txorphan.cpp \ test/fuzz/utxo_snapshot.cpp \ test/fuzz/validation_load_mempool.cpp \ test/fuzz/versionbits.cpp diff --git a/src/test/fuzz/txorphan.cpp b/src/test/fuzz/txorphan.cpp new file mode 100644 index 000000000000..47e6dbfc825e --- /dev/null +++ b/src/test/fuzz/txorphan.cpp @@ -0,0 +1,146 @@ +// Copyright (c) 2022 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