diff --git a/src/test/txvalidationcache_tests.cpp b/src/test/txvalidationcache_tests.cpp --- a/src/test/txvalidationcache_tests.cpp +++ b/src/test/txvalidationcache_tests.cpp @@ -444,6 +444,7 @@ } BOOST_AUTO_TEST_CASE(scriptcache_values) { + LOCK(cs_main); // Test insertion and querying of keys&values from the script cache. // Define a couple of macros (handier than functions since errors will print