Expect version packet to have been received, and process it (only after ReceiveKey). */
| 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). */ |
no test coverage detected