aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2024-07-04 21:43:16 +0200
committerTheCharlatan <seb.kung@gmail.com>2024-07-19 13:37:31 +0200
commit9e2a723d5da4fc277a42fed37424f578e348ebf8 (patch)
tree930ed9b37ec096c943c0bc0aa24784bb0038f0ee /src/test/fuzz
parentec74f457416a11938361ef4829e701cc15cfe2b2 (diff)
test: Add arguments for creating a slimmer setup
Adds more testing options for creating an environment without networking and a validation interface. This is useful for improving the performance of the utxo snapshot fuzz test, which constructs a new TestingSetup on each iteration.
Diffstat (limited to 'src/test/fuzz')
-rw-r--r--src/test/fuzz/utxo_snapshot.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/test/fuzz/utxo_snapshot.cpp b/src/test/fuzz/utxo_snapshot.cpp
index 522c9c54ee..60d9d39b73 100644
--- a/src/test/fuzz/utxo_snapshot.cpp
+++ b/src/test/fuzz/utxo_snapshot.cpp
@@ -31,7 +31,13 @@ void initialize_chain()
FUZZ_TARGET(utxo_snapshot, .init = initialize_chain)
{
FuzzedDataProvider fuzzed_data_provider(buffer.data(), buffer.size());
- std::unique_ptr<const TestingSetup> setup{MakeNoLogFileContext<const TestingSetup>()};
+ std::unique_ptr<const TestingSetup> setup{
+ MakeNoLogFileContext<const TestingSetup>(
+ ChainType::REGTEST,
+ TestOpts{
+ .setup_net = false,
+ .setup_validation_interface = false,
+ })};
const auto& node = setup->m_node;
auto& chainman{*node.chainman};