We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa28850 commit fa266c4Copy full SHA for fa266c4
src/test/interfaces_tests.cpp
@@ -98,7 +98,7 @@ BOOST_AUTO_TEST_CASE(findAncestorByHash)
98
BOOST_AUTO_TEST_CASE(findCommonAncestor)
99
{
100
auto& chain = m_node.chain;
101
- const CChain& active = WITH_LOCK(Assert(m_node.chainman)->GetMutex(), return Assert(m_node.chainman)->ActiveChain());
+ const CChain& active{*WITH_LOCK(Assert(m_node.chainman)->GetMutex(), return &Assert(m_node.chainman)->ActiveChain())};
102
auto* orig_tip = active.Tip();
103
for (int i = 0; i < 10; ++i) {
104
BlockValidationState state;
0 commit comments