0
0
Fork 0
mirror of https://github.com/bitcoin/bitcoin.git synced 2025-02-02 09:46:52 -05:00

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
No known key found for this signature in database
GPG key ID: F13D1E9D890798CD

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()