MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / initialize_process_message

Function initialize_process_message

src/test/fuzz/process_message.cpp:60–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58} // namespace
59
60void initialize_process_message()
61{
62 if (const auto val{std::getenv("LIMIT_TO_MESSAGE_TYPE")}) {
63 LIMIT_TO_MESSAGE_TYPE = val;
64 Assert(std::count(ALL_NET_MESSAGE_TYPES.begin(), ALL_NET_MESSAGE_TYPES.end(), LIMIT_TO_MESSAGE_TYPE)); // Unknown message type passed
65 }
66
67 static const auto testing_setup{
68 MakeNoLogFileContext<TestingSetup>(
69 /*chain_type=*/ChainType::REGTEST,
70 {}),
71 };
72 g_setup = testing_setup.get();
73 ResetChainman(*g_setup);
74}
75
76FUZZ_TARGET(process_message, .init = initialize_process_message)
77{

Callers

nothing calls this directly

Calls 4

ResetChainmanFunction · 0.70
beginMethod · 0.45
endMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected