(87 . 10)(87 . 21)
101 extern int fUseProxy;
102 extern CAddress addrProxy;
103
104
105
106
107
108 class CNodeStats
109 {
110 public:
111 uint64 nServices;
112 int64 nLastSend;
113 int64 nLastRecv;
114 int64 nTimeConnected;
115 CAddress addr;
116 int nVersion;
117 std::string strSubVer;
118 bool fInbound;
119 int64 nReleaseTime;
120 int nStartingHeight;
121 int nMisbehavior;
122 };
123
124 class CNode
125 {
(585 . 6)(596 . 7)
127 static void ClearBanned(); // needed for unit testing
128 static bool IsBanned(unsigned int ip);
129 bool Misbehaving(int howmuch); // 1 == a little, 100 == a lot
130 void CopyStats(CNodeStats &stats);
131 };
132
133