Skip to content

Commit 72e5d1b

Browse files
committed
test: Add basic check for nChainTx type
1 parent dc2938e commit 72e5d1b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/test/blockchain_tests.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,11 @@ BOOST_FIXTURE_TEST_CASE(get_prune_height, TestChain100Setup)
110110
CheckGetPruneHeight(blockman, chain, 100);
111111
}
112112

113+
BOOST_AUTO_TEST_CASE(num_chain_tx_max)
114+
{
115+
CBlockIndex block_index{};
116+
block_index.nChainTx = std::numeric_limits<uint64_t>::max();
117+
BOOST_CHECK_EQUAL(block_index.nChainTx, std::numeric_limits<uint64_t>::max());
118+
}
119+
113120
BOOST_AUTO_TEST_SUITE_END()

0 commit comments

Comments
 (0)