Skip to content

Commit ca01bb8

Browse files
committed
rpc: Add Coinstats index to getindexinfo
1 parent 57a026c commit ca01bb8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/rpc/misc.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <httpserver.h>
77
#include <index/blockfilterindex.h>
8+
#include <index/coinstatsindex.h>
89
#include <index/txindex.h>
910
#include <interfaces/chain.h>
1011
#include <key_io.h>
@@ -689,6 +690,10 @@ static RPCHelpMan getindexinfo()
689690
result.pushKVs(SummaryToJSON(g_txindex->GetSummary(), index_name));
690691
}
691692

693+
if (g_coin_stats_index) {
694+
result.pushKVs(SummaryToJSON(g_coin_stats_index->GetSummary(), index_name));
695+
}
696+
692697
ForEachBlockFilterIndex([&result, &index_name](const BlockFilterIndex& index) {
693698
result.pushKVs(SummaryToJSON(index.GetSummary(), index_name));
694699
});

0 commit comments

Comments
 (0)