aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/partially_downloaded_block.cpp
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2024-04-21 10:03:21 +0200
committerTheCharlatan <seb.kung@gmail.com>2024-05-17 23:37:25 +0200
commit09ef322acc0a88a9e119f74923399598984c68f6 (patch)
tree267676aa64f40b55635c870efbf8847c7706991c /src/test/fuzz/partially_downloaded_block.cpp
parent3d24189664e696a2ca1aee2b5ea57b245344e2d4 (diff)
downloadbitcoin-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.cpp6
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)