MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / get_node_state

Function get_node_state

src/rpc/rpcmisc.cpp:35–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33extern CPBFTMan pbftMan;
34
35string get_node_state() {
36 if (SysCfg().IsImporting())
37 return "Loading";
38 else if (SysCfg().IsReindex())
39 return "ReIndexing";
40 else if (IsInitialBlockDownload())
41 return "IBD";
42 else
43 return "InSync";
44}
45
46Value getcoinunitinfo(const Array& params, bool fHelp){
47 if (fHelp || params.size() > 1) {

Callers 1

getinfoFunction · 0.85

Calls 3

IsInitialBlockDownloadFunction · 0.85
IsImportingMethod · 0.80
IsReindexMethod · 0.80

Tested by

no test coverage detected