add a few checks where it seems appropriate

This commit is contained in:
moneromooo-monero 2019-04-29 16:51:39 +00:00
parent 581994b61c
commit 25a7cfdb4a
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
7 changed files with 8 additions and 2 deletions

View file

@ -48,6 +48,7 @@ TEST(protocol_pack, protocol_pack_command)
cryptonote::NOTIFY_RESPONSE_CHAIN_ENTRY::request r2;
res = epee::serialization::load_t_from_binary(r2, buff);
ASSERT_TRUE(res);
ASSERT_TRUE(r.m_block_ids.size() == i);
ASSERT_TRUE(r.start_height == 1);
ASSERT_TRUE(r.total_height == 3);