Changeset View
Changeset View
Standalone View
Standalone View
src/test/fuzz/process_message.cpp
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | EXPECTED_DESERIALIZATION_EXCEPTIONS = { | ||||
"getblocks", "getblocktxn", "getdata", "getheaders", "headers", "inv", | "getblocks", "getblocktxn", "getdata", "getheaders", "headers", "inv", | ||||
"notfound", "tx"}}, | "notfound", "tx"}}, | ||||
{"Superfluous witness record: iostream error", | {"Superfluous witness record: iostream error", | ||||
{"block", "blocktxn", "cmpctblock", "tx"}}, | {"block", "blocktxn", "cmpctblock", "tx"}}, | ||||
{"Unknown transaction optional data: iostream error", | {"Unknown transaction optional data: iostream error", | ||||
{"block", "blocktxn", "cmpctblock", "tx"}}, | {"block", "blocktxn", "cmpctblock", "tx"}}, | ||||
}; | }; | ||||
const RegTestingSetup *g_setup; | const TestingSetup *g_setup; | ||||
} // namespace | } // namespace | ||||
void initialize() { | void initialize() { | ||||
static RegTestingSetup setup{}; | static TestingSetup setup{ | ||||
CBaseChainParams::REGTEST, | |||||
{ | |||||
"-nodebuglogfile", | |||||
}, | |||||
}; | |||||
g_setup = &setup; | g_setup = &setup; | ||||
for (int i = 0; i < 2 * COINBASE_MATURITY; i++) { | for (int i = 0; i < 2 * COINBASE_MATURITY; i++) { | ||||
MineBlock(GetConfig(), g_setup->m_node, CScript() << OP_TRUE); | MineBlock(GetConfig(), g_setup->m_node, CScript() << OP_TRUE); | ||||
} | } | ||||
SyncWithValidationInterfaceQueue(); | SyncWithValidationInterfaceQueue(); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |