diff options
author | Carl Dong <contact@carldong.me> | 2020-09-01 16:15:57 -0400 |
---|---|---|
committer | Carl Dong <contact@carldong.me> | 2021-03-08 15:54:31 -0500 |
commit | 106bcd4f390137904b5579cfef023fb8a5c8b4b5 (patch) | |
tree | 7b3e55d2067e347877b4e7ae469ec2d51b1694cb /src/test | |
parent | 2c3ba006930a5bbbf5a33bd530f3c1b2c4103c74 (diff) | |
download | bitcoin-106bcd4f390137904b5579cfef023fb8a5c8b4b5.tar.xz |
node/coinstats: Pass in BlockManager to GetUTXOStats
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/fuzz/coins_view.cpp | 2 |
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; } |