mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 18:09:47 +01:00
fuzz: version handshake
This commit is contained in:
parent
685c16fcb2
commit
fabce459bb
@ -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…
Reference in New Issue
Block a user