aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Jahr <fjahr@protonmail.com>2024-03-14 22:38:21 +0100
committerFabian Jahr <fjahr@protonmail.com>2024-08-04 12:12:39 +0200
commit72e5d1be1f4491565249d43e836ee42cfd858866 (patch)
treed9e4e6bcb953af2680865418e4942cb2b599a410
parentdc2938e9799d79696d1db2438ef33d90542d984b (diff)
test: Add basic check for nChainTx type
-rw-r--r--src/test/blockchain_tests.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/blockchain_tests.cpp b/src/test/blockchain_tests.cpp
index bc509d73ac..b7203e4bd4 100644
--- a/src/test/blockchain_tests.cpp
+++ b/src/test/blockchain_tests.cpp
@@ -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()