Bitcoin ABC 0.30.3
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 45 of file db.h.

Constructor & Destructor Documentation

◆ CAddrStat()

CAddrStat::CAddrStat ( )
inline

Definition at line 52 of file db.h.

Member Function Documentation

◆ SERIALIZE_METHODS()

CAddrStat::SERIALIZE_METHODS ( CAddrStat  ,
obj   
)
inline

Definition at line 61 of file db.h.

◆ Update()

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

Definition at line 54 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 65 of file db.h.

Member Data Documentation

◆ count

float CAddrStat::count
private

Definition at line 48 of file db.h.

◆ reliability

float CAddrStat::reliability
private

Definition at line 49 of file db.h.

◆ weight

float CAddrStat::weight
private

Definition at line 47 of file db.h.


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