mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Merge #20370: fuzz: version handshake
fabce459bbfuzz: version handshake (MarcoFalke) Pull request description: Not fuzzing the version handshake will limit fuzz coverage ACKs for top commit: practicalswift: cr ACKfabce459bb: patch looks very much correct Tree-SHA512: 4091d27d39edee781d033e471b352084bb54df250d0890e4821a325926a44dff9b26a2614d67dd0529f73bd366b075d7a0a1a570c2837de286a1b93a59a8fb91
This commit is contained in:
commit
0ad4656790
2 changed files with 2 additions and 2 deletions
|
|
@ -79,7 +79,7 @@ void fuzz_target(FuzzBufferType buffer, const std::string& LIMIT_TO_MESSAGE_TYPE
|
|||
}
|
||||
CNode& p2p_node = *ConsumeNodeAsUniquePtr(fuzzed_data_provider).release();
|
||||
|
||||
const bool successfully_connected{true};
|
||||
const bool successfully_connected{fuzzed_data_provider.ConsumeBool()};
|
||||
p2p_node.fSuccessfullyConnected = successfully_connected;
|
||||
connman.AddTestNode(p2p_node);
|
||||
g_setup->m_node.peerman->InitializeNode(&p2p_node);
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ FUZZ_TARGET_INIT(process_messages, initialize_process_messages)
|
|||
peers.push_back(ConsumeNodeAsUniquePtr(fuzzed_data_provider, i).release());
|
||||
CNode& p2p_node = *peers.back();
|
||||
|
||||
const bool successfully_connected{true};
|
||||
const bool successfully_connected{fuzzed_data_provider.ConsumeBool()};
|
||||
p2p_node.fSuccessfullyConnected = successfully_connected;
|
||||
p2p_node.fPauseSend = false;
|
||||
g_setup->m_node.peerman->InitializeNode(&p2p_node);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue