| 90 | // class CNodeStats |
| 91 | |
| 92 | class CNodeStats { |
| 93 | public: |
| 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 | |
| 117 | extern CNode* pnodeSync; |
| 118 |