diff options
author | Jon Atack <jon@atack.com> | 2022-01-19 13:42:32 +0100 |
---|---|---|
committer | Jon Atack <jon@atack.com> | 2022-01-25 20:46:52 +0100 |
commit | 6ea56827842b9b2bd730edc38f3a7b1f46f6247b (patch) | |
tree | 640d733a2bdcd1bce0156f74ff0ff2fd92fef583 /src/test/interfaces_tests.cpp | |
parent | 5d59ae0ba88849b1eb0d7350871bc19fcd5ef601 (diff) |
Guard CBlockIndex::nStatus/nFile/nDataPos/nUndoPos by cs_main
Co-authored-by: Vasil Dimov <vd@FreeBSD.org>
Diffstat (limited to 'src/test/interfaces_tests.cpp')
-rw-r--r-- | src/test/interfaces_tests.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/interfaces_tests.cpp b/src/test/interfaces_tests.cpp index f4bf6ff8c9..49b7d2003b 100644 --- a/src/test/interfaces_tests.cpp +++ b/src/test/interfaces_tests.cpp @@ -123,6 +123,7 @@ BOOST_AUTO_TEST_CASE(findCommonAncestor) BOOST_AUTO_TEST_CASE(hasBlocks) { + LOCK(::cs_main); auto& chain = m_node.chain; const CChain& active = Assert(m_node.chainman)->ActiveChain(); |