Skip to content

Commit 05e3468

Browse files
author
MarcoFalke
committed
Merge bitcoin/bitcoin#26686: fuzz: Enable erlay setting in process_message(s) targets
58c2bbd [fuzz] Enable erlay in process_message(s) targets (dergoegge) Pull request description: The process_message(s) targets can't exercise the Erlay logic at the moment as the config setting is off by default and not switched on in the fuzz targets. This PR enables the `-txreconciliation` setting in both targets. ACKs for top commit: fanquake: ACK 58c2bbd Tree-SHA512: a2754fd04549bdcac94d8225244c5c83fe4c26114c0c2fdf316257480625e05e4e6b1b791974e1f1021451d3f81cb59a109261fb73178ad03911f0a3db963077
2 parents 2343886 + 58c2bbd commit 05e3468

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/test/fuzz/process_message.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ void initialize_process_message()
5656
{
5757
Assert(GetNumMsgTypes() == getAllNetMessageTypes().size()); // If this fails, add or remove the message type below
5858

59-
static const auto testing_setup = MakeNoLogFileContext<const TestingSetup>();
59+
static const auto testing_setup = MakeNoLogFileContext<const TestingSetup>(
60+
/*chain_name=*/CBaseChainParams::REGTEST,
61+
/*extra_args=*/{"-txreconciliation"});
6062
g_setup = testing_setup.get();
6163
for (int i = 0; i < 2 * COINBASE_MATURITY; i++) {
6264
MineBlock(g_setup->m_node, CScript() << OP_TRUE);

src/test/fuzz/process_messages.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ const TestingSetup* g_setup;
2323

2424
void initialize_process_messages()
2525
{
26-
static const auto testing_setup = MakeNoLogFileContext<const TestingSetup>();
26+
static const auto testing_setup = MakeNoLogFileContext<const TestingSetup>(
27+
/*chain_name=*/CBaseChainParams::REGTEST,
28+
/*extra_args=*/{"-txreconciliation"});
2729
g_setup = testing_setup.get();
2830
for (int i = 0; i < 2 * COINBASE_MATURITY; i++) {
2931
MineBlock(g_setup->m_node, CScript() << OP_TRUE);

0 commit comments

Comments
 (0)