From 8043a133efd71023edf295b1cb2ee9c4d7d09c1c Mon Sep 17 00:00:00 2001 From: ijanus Date: Fri, 28 Jun 2024 13:22:01 +0100 Subject: [PATCH] Update rpc/node.cpp file --- src/rpc/node.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rpc/node.cpp b/src/rpc/node.cpp index 46f06279e7..46617fc366 100644 --- a/src/rpc/node.cpp +++ b/src/rpc/node.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include #include @@ -387,6 +388,10 @@ static RPCHelpMan getindexinfo() result.pushKVs(SummaryToJSON(g_txindex->GetSummary(), index_name)); } + if (g_coin_stats_index) { + result.pushKVs(SummaryToJSON(g_coin_stats_index->GetSummary(), index_name)); + } + ForEachBlockFilterIndex([&result, &index_name](const BlockFilterIndex& index) { result.pushKVs(SummaryToJSON(index.GetSummary(), index_name)); });