test: Add basic check for nChainTx type

This commit is contained in:
Fabian Jahr
2024-03-14 22:38:21 +01:00
parent dc2938e979
commit 72e5d1be1f

View File

@@ -110,4 +110,11 @@ BOOST_FIXTURE_TEST_CASE(get_prune_height, TestChain100Setup)
CheckGetPruneHeight(blockman, chain, 100);
}
BOOST_AUTO_TEST_CASE(num_chain_tx_max)
{
CBlockIndex block_index{};
block_index.nChainTx = std::numeric_limits<uint64_t>::max();
BOOST_CHECK_EQUAL(block_index.nChainTx, std::numeric_limits<uint64_t>::max());
}
BOOST_AUTO_TEST_SUITE_END()