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

Class CNodeStats

src/rpc/rpcnet.cpp:92–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90// class CNodeStats
91
92class CNodeStats {
93public:
94 NodeId nodeid;
95 uint64_t nServices;
96 int64_t nLastSend;
97 int64_t nLastRecv;
98 int64_t nTimeConnected;
99 string addrName;
100 int32_t nVersion;
101 string cleanSubVer;
102 bool fInbound;
103 int32_t nStartingHeight;
104 uint64_t nSendBytes;
105 uint64_t nRecvBytes;
106 bool fSyncNode;
107 double dPingTime;
108 double dPingWait;
109 string addrLocal;
110
111 // memory stat.
112 std::optional<CNodeMemoryStat> mem_stat;
113
114 CNodeStats(CNode &node, bool need_detail);
115};
116
117extern CNode* pnodeSync;
118

Callers 1

CopyNodeStatsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected