Refactored merge mining code

This commit is contained in:
SChernykh
2026-04-24 11:01:59 +02:00
parent eaee503d05
commit 54e0d3f3eb
8 changed files with 372 additions and 292 deletions
+5
View File
@@ -33,6 +33,11 @@ TEST(hash, constructor)
memset(h.h, -1, HASH_SIZE);
h = {};
ASSERT_EQ(memcmp(h.h, buf, HASH_SIZE), 0);
h = { "000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f" };
for (uint8_t i = 0; i < HASH_SIZE; ++i) {
ASSERT_EQ(h.h[i], i);
}
}
TEST(hash, compare)