#include <openssl/rand.h>
-// Extended statistics about a CAddress
+/** Extended statistics about a CAddress */
class CAddrInfo : public CAddress
{
private:
nRandomPos = -1;
}
- CAddrInfo(const CAddress &addrIn, const CNetAddr &addrSource) : CAddress(addrIn)
+ CAddrInfo(const CAddress &addrIn, const CNetAddr &addrSource) : CAddress(addrIn), source(addrSource)
{
Init();
}
// the maximum number of nodes to return in a getaddr call
#define ADDRMAN_GETADDR_MAX 2500
+/** Stochastical (IP) address manager */
class CAddrMan
{
private: