From ca01bb8d689f93e1c7669b0ba7a4994c0206dabd Mon Sep 17 00:00:00 2001 From: Fabian Jahr Date: Sat, 22 Aug 2020 18:31:34 +0200 Subject: [PATCH] rpc: Add Coinstats index to getindexinfo --- src/rpc/misc.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp index 00a06260ea..dd495850d3 100644 --- a/src/rpc/misc.cpp +++ b/src/rpc/misc.cpp @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -689,6 +690,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)); });