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

Method ReceiveVersion

src/test/net_tests.cpp:1303–1310  ·  view source on GitHub ↗

Expect version packet to have been received, and process it (only after ReceiveKey). */

Source from the content-addressed store, hash-verified

1301
1302 /** Expect version packet to have been received, and process it (only after ReceiveKey). */
1303 void ReceiveVersion()
1304 {
1305 auto contents = ReceivePacket(/*aad=*/MakeByteSpan(m_recv_garbage));
1306 // Version packets from real BIP324 peers are expected to be empty, despite the fact that
1307 // this class supports *sending* non-empty version packets (to test that BIP324 peers
1308 // correctly ignore version packet contents).
1309 BOOST_CHECK(contents.empty());
1310 }
1311
1312 /** Expect application packet to have been received, with specified short id and payload.
1313 * (only after ReceiveKey). */

Callers 1

BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 2

MakeByteSpanFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected