aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/blockchain.cpp
diff options
context:
space:
mode:
authorCarl Dong <contact@carldong.me>2021-05-05 14:07:52 -0400
committerCarl Dong <contact@carldong.me>2021-05-19 16:34:32 -0400
commitfc1c282845f6b8436d1ea4c68eb3511034c29bea (patch)
tree47da55ed78056e496d35860547ecc91f8bcef470 /src/rpc/blockchain.cpp
parent7d19c85f4a27008cada169b7066f265a07f1ea77 (diff)
rpc/blockchain: Use existing blockman in gettxoutsetinfo
Was missed in last bundle
Diffstat (limited to 'src/rpc/blockchain.cpp')
-rw-r--r--src/rpc/blockchain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp
index f2b99579b7..fb1c7c73a2 100644
--- a/src/rpc/blockchain.cpp
+++ b/src/rpc/blockchain.cpp
@@ -1196,7 +1196,7 @@ static RPCHelpMan gettxoutsetinfo()
CCoinsStats prev_stats{hash_type};
if (pindex->nHeight > 0) {
- GetUTXOStats(coins_view, WITH_LOCK(::cs_main, return std::ref(g_chainman.m_blockman)), prev_stats, node.rpc_interruption_point, pindex->pprev);
+ GetUTXOStats(coins_view, *blockman, prev_stats, node.rpc_interruption_point, pindex->pprev);
}
UniValue block_info(UniValue::VOBJ);