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

Function getnodeinfo

src/nodeinfo.h:34–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32};
33
34void getnodeinfo(NodeInfo *pNodeInfo) {
35 static const string fullVersion = strprintf("%s (%s)", FormatFullVersion().c_str(), CLIENT_DATE.c_str());
36 pNodeInfo->nv = fullVersion;
37 pNodeInfo->bp = mining;
38 pNodeInfo->nfp = mining ? minerKeyId.ToString() : nodeKeyId.ToString();
39 pNodeInfo->synh = nSyncTipHeight;
40 pNodeInfo->tiph = chainActive.Height();
41 pNodeInfo->finh = 0; // TODO: placeholder here
42}
43
44#endif

Callers 1

GetSystemInfoFunction · 0.85

Calls 3

FormatFullVersionFunction · 0.85
HeightMethod · 0.80
ToStringMethod · 0.45

Tested by

no test coverage detected