diff options
author | TheCharlatan <seb.kung@gmail.com> | 2024-04-21 10:03:21 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2024-05-17 23:37:25 +0200 |
commit | 09ef322acc0a88a9e119f74923399598984c68f6 (patch) | |
tree | 267676aa64f40b55635c870efbf8847c7706991c /src/test/fuzz/partially_downloaded_block.cpp | |
parent | 3d24189664e696a2ca1aee2b5ea57b245344e2d4 (diff) | |
download | bitcoin-09ef322acc0a88a9e119f74923399598984c68f6.tar.xz |
[[refactor]] Check CTxMemPool options in constructor
This ensures that the tests run the same checks on the mempool options
that the init code also applies.
Diffstat (limited to 'src/test/fuzz/partially_downloaded_block.cpp')
-rw-r--r-- | src/test/fuzz/partially_downloaded_block.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/fuzz/partially_downloaded_block.cpp b/src/test/fuzz/partially_downloaded_block.cpp index 2bf47930f4..791d457710 100644 --- a/src/test/fuzz/partially_downloaded_block.cpp +++ b/src/test/fuzz/partially_downloaded_block.cpp @@ -10,6 +10,8 @@ #include <test/util/setup_common.h> #include <test/util/txmempool.h> #include <txmempool.h> +#include <util/check.h> +#include <util/translation.h> #include <cstddef> #include <cstdint> @@ -52,7 +54,9 @@ FUZZ_TARGET(partially_downloaded_block, .init = initialize_pdb) CBlockHeaderAndShortTxIDs cmpctblock{*block}; - CTxMemPool pool{MemPoolOptionsForTest(g_setup->m_node)}; + bilingual_str error; + CTxMemPool pool{MemPoolOptionsForTest(g_setup->m_node), error}; + Assert(error.empty()); PartiallyDownloadedBlock pdb{&pool}; // Set of available transactions (mempool or extra_txn) |