| 96 | } |
| 97 | |
| 98 | BOOST_FIXTURE_TEST_CASE(get_prune_height, TestChain100Setup) |
| 99 | { |
| 100 | LOCK(::cs_main); |
| 101 | const auto& chain = m_node.chainman->ActiveChain(); |
| 102 | const auto& blockman = m_node.chainman->m_blockman; |
| 103 | |
| 104 | // Fresh chain of 100 blocks without any pruned blocks, so std::nullopt should be returned |
| 105 | BOOST_CHECK(!GetPruneHeight(blockman, chain).has_value()); |
| 106 | |
| 107 | // Start pruning |
| 108 | CheckGetPruneHeight(blockman, chain, 1); |
| 109 | CheckGetPruneHeight(blockman, chain, 99); |
| 110 | CheckGetPruneHeight(blockman, chain, 100); |
| 111 | } |
| 112 | |
| 113 | BOOST_AUTO_TEST_CASE(num_chain_tx_max) |
| 114 | { |
nothing calls this directly
no test coverage detected