aboutsummaryrefslogtreecommitdiff
path: root/src/test/fuzz/coins_view.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2020-09-01 16:15:57 -0400
committerCarl Dong <contact@carldong.me>2021-03-08 15:54:31 -0500
commit106bcd4f390137904b5579cfef023fb8a5c8b4b5 (patch)
tree7b3e55d2067e347877b4e7ae469ec2d51b1694cb /src/test/fuzz/coins_view.cpp
parent2c3ba006930a5bbbf5a33bd530f3c1b2c4103c74 (diff)
node/coinstats: Pass in BlockManager to GetUTXOStats
Diffstat (limited to 'src/test/fuzz/coins_view.cpp')
-rw-r--r--src/test/fuzz/coins_view.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/fuzz/coins_view.cpp b/src/test/fuzz/coins_view.cpp
index 328a31f1dc..d951bda20f 100644
--- a/src/test/fuzz/coins_view.cpp
+++ b/src/test/fuzz/coins_view.cpp
@@ -264,7 +264,7 @@ FUZZ_TARGET_INIT(coins_view, initialize_coins_view)
CCoinsStats stats;
bool expected_code_path = false;
try {
- (void)GetUTXOStats(&coins_view_cache, stats, CoinStatsHashType::HASH_SERIALIZED);
+ (void)GetUTXOStats(&coins_view_cache, WITH_LOCK(::cs_main, return std::ref(g_chainman.m_blockman)), stats, CoinStatsHashType::HASH_SERIALIZED);
} catch (const std::logic_error&) {
expected_code_path = true;
}