From 699643f23a1bd0346e36bd90c83ba1b0b0a5c3fe Mon Sep 17 00:00:00 2001 From: glozow Date: Mon, 29 Apr 2024 11:58:54 +0100 Subject: [PATCH] [unit test] MempoolRejectedTx --- src/test/CMakeLists.txt | 1 + src/test/txdownload_tests.cpp | 337 ++++++++++++++++++++++++++++++++++ 2 files changed, 338 insertions(+) create mode 100644 src/test/txdownload_tests.cpp diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index c23fbae92fe..c376c1905a2 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -125,6 +125,7 @@ add_executable(test_bitcoin torcontrol_tests.cpp transaction_tests.cpp translation_tests.cpp + txdownload_tests.cpp txindex_tests.cpp txpackage_tests.cpp txreconciliation_tests.cpp diff --git a/src/test/txdownload_tests.cpp b/src/test/txdownload_tests.cpp new file mode 100644 index 00000000000..3eb57a63537 --- /dev/null +++ b/src/test/txdownload_tests.cpp @@ -0,0 +1,337 @@ +// Copyright (c) 2011-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 +#include