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

Method SendGarbage

src/test/net_tests.cpp:1173–1179  ·  view source on GitHub ↗

Schedule specified garbage to be sent to the transport. */

Source from the content-addressed store, hash-verified

1171
1172 /** Schedule specified garbage to be sent to the transport. */
1173 void SendGarbage(std::span<const uint8_t> garbage)
1174 {
1175 // Remember the specified garbage (so we can use it as AAD).
1176 m_sent_garbage.assign(garbage.begin(), garbage.end());
1177 // Schedule it for sending.
1178 Send(m_sent_garbage);
1179 }
1180
1181 /** Schedule garbage (of specified length) to be sent to the transport. */
1182 void SendGarbage(size_t garbage_len)

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 4

randrangeMethod · 0.80
assignMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected