Bitcoin ABC  0.29.2
P2P Digital Currency
Public Member Functions | Private Attributes | Friends | List of all members
CAddrStat Class Reference

#include <db.h>

Public Member Functions

 CAddrStat ()
 
void Update (bool good, int64_t age, double tau)
 
 SERIALIZE_METHODS (CAddrStat, obj)
 

Private Attributes

float weight
 
float count
 
float reliability
 

Friends

class SeederAddrInfo
 

Detailed Description

Definition at line 40 of file db.h.

Constructor & Destructor Documentation

◆ CAddrStat()

CAddrStat::CAddrStat ( )
inline

Definition at line 47 of file db.h.

Member Function Documentation

◆ SERIALIZE_METHODS()

CAddrStat::SERIALIZE_METHODS ( CAddrStat  ,
obj   
)
inline

Definition at line 56 of file db.h.

◆ Update()

void CAddrStat::Update ( bool  good,
int64_t  age,
double  tau 
)
inline

Definition at line 49 of file db.h.

Here is the caller graph for this function:

Friends And Related Function Documentation

◆ SeederAddrInfo

friend class SeederAddrInfo
friend

Definition at line 60 of file db.h.

Member Data Documentation

◆ count

float CAddrStat::count
private

Definition at line 43 of file db.h.

◆ reliability

float CAddrStat::reliability
private

Definition at line 44 of file db.h.

◆ weight

float CAddrStat::weight
private

Definition at line 42 of file db.h.


The documentation for this class was generated from the following file: