| 779 | } |
| 780 | |
| 781 | static UniValue SummaryToJSON(const IndexSummary&& summary, std::string index_name) |
| 782 | { |
| 783 | UniValue ret_summary(UniValue::VOBJ); |
| 784 | if (!index_name.empty() && index_name != summary.name) return ret_summary; |
| 785 | |
| 786 | UniValue entry(UniValue::VOBJ); |
| 787 | entry.pushKV("synced", summary.synced); |
| 788 | entry.pushKV("best_block_height", summary.best_block_height); |
| 789 | ret_summary.pushKV(summary.name, entry); |
| 790 | return ret_summary; |
| 791 | } |
| 792 | |
| 793 | static RPCHelpMan getindexinfo() |
| 794 | { |
no test coverage detected