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:
parent
dc2938e979
commit
72e5d1be1f
1 changed files with 7 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue