MCPcopy Create free account
hub / github.com/ElementsProject/elements / SummaryToJSON

Function SummaryToJSON

src/rpc/misc.cpp:781–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779}
780
781static 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
793static RPCHelpMan getindexinfo()
794{

Callers 1

getindexinfoFunction · 0.85

Calls 2

emptyMethod · 0.45
pushKVMethod · 0.45

Tested by

no test coverage detected