From 50024620b909fc30b68a3715680e963f048482a5 Mon Sep 17 00:00:00 2001 From: glozow Date: Fri, 27 Jun 2025 15:08:34 -0400 Subject: [PATCH] [bench] worst case LimitOrphans and EraseForBlock Co-authored-by: Greg Sanders --- src/bench/CMakeLists.txt | 1 + src/bench/txorphanage.cpp | 270 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 271 insertions(+) create mode 100644 src/bench/txorphanage.cpp diff --git a/src/bench/CMakeLists.txt b/src/bench/CMakeLists.txt index 2137beccb5..9d40fc6fd4 100644 --- a/src/bench/CMakeLists.txt +++ b/src/bench/CMakeLists.txt @@ -49,6 +49,7 @@ add_executable(bench_bitcoin streams_findbyte.cpp strencodings.cpp txgraph.cpp + txorphanage.cpp util_time.cpp verify_script.cpp xor.cpp diff --git a/src/bench/txorphanage.cpp b/src/bench/txorphanage.cpp new file mode 100644 index 0000000000..b9bb7b41c2 --- /dev/null +++ b/src/bench/txorphanage.cpp @@ -0,0 +1,270 @@ +// Copyright (c) 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