We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 785d8f9 commit 43a85feCopy full SHA for 43a85fe
src/test/interfaces_tests.cpp
@@ -102,7 +102,9 @@ BOOST_AUTO_TEST_CASE(findCommonAncestor)
102
auto* orig_tip = active.Tip();
103
for (int i = 0; i < 10; ++i) {
104
BlockValidationState state;
105
- m_node.chainman->ActiveChainstate().InvalidateBlock(state, active.Tip());
+ auto* curr_tip = active.Tip();
106
+ m_node.chainman->ActiveChainstate().InvalidateBlock(state, curr_tip);
107
+ WITH_LOCK(::cs_main, assert(curr_tip->nStatus & BLOCK_FAILED_VALID));
108
}
109
BOOST_CHECK_EQUAL(active.Height(), orig_tip->nHeight - 10);
110
coinbaseKey.MakeNewKey(true);
0 commit comments