diff --git a/src/net.h b/src/net.h --- a/src/net.h +++ b/src/net.h @@ -98,7 +98,7 @@ bool fInbound; }; -class CNodeStats; +struct CNodeStats; class CClientUIInterface; struct CSerializedNetMsg { @@ -524,8 +524,12 @@ // Command, total bytes typedef std::map mapMsgCmdSize; -class CNodeStats { -public: +/** + * POD that contains various stats about a node. + * Usually constructed from CConman::GetNodeStats. Stats are filled from the + * node using CNode::copyStats. + */ +struct CNodeStats { NodeId nodeid; ServiceFlags nServices; bool fRelayTxes;