CI: more tests

This commit is contained in:
SChernykh
2025-06-22 23:18:36 +02:00
parent e5d487aa50
commit 1b863109f9
3 changed files with 11 additions and 1 deletions

View File

@@ -88,6 +88,7 @@ TEST(block_template, update)
tx.weight = 1500;
mempool.add(tx);
}
ASSERT_EQ(mempool.size(), 512);
tpl.update(data, mempool, &wallet);
ASSERT_EQ(tpl.get_reward(), 612054770773ULL);
@@ -123,6 +124,7 @@ TEST(block_template, update)
transactions.push_back(tx);
}
mempool.swap(transactions);
ASSERT_EQ(mempool.size(), 10);
data.aux_chains.emplace_back(H("01f0cf665bd4cd31cbb2b2470236389c483522b350335e10a4a5dca34cb85990"), H("d9de1cfba7cdbd47f12f77addcb39b24c1ae7a16c35372bf28d6aee5d7579ee6"), difficulty_type(1000000));
@@ -160,6 +162,7 @@ TEST(block_template, update)
mempool.add(tx);
}
ASSERT_EQ(mempool.size(), 10000);
tpl.update(data, mempool, &wallet);
ASSERT_EQ(tpl.get_reward(), 619742028747ULL);