data api: check p2pool shares that come after a Monero block

This commit is contained in:
SChernykh
2021-09-06 23:33:52 +02:00
parent 06f39c3f4c
commit 899d5a82dd
5 changed files with 42 additions and 6 deletions

View File

@@ -27,6 +27,10 @@ TEST(hash, constructor)
hash h;
uint8_t buf[HASH_SIZE]{};
ASSERT_EQ(memcmp(h.h, buf, HASH_SIZE), 0);
memset(h.h, -1, HASH_SIZE);
h = {};
ASSERT_EQ(memcmp(h.h, buf, HASH_SIZE), 0);
}
TEST(hash, compare)