Bitcoin ABC  0.24.7
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
avalanche::Peer Struct Reference

#include <peermanager.h>

Public Member Functions

 Peer (PeerId peerid_, ProofRef proof_)
 
const ProofIdgetProofId () const
 
uint32_t getScore () const
 

Public Attributes

PeerId peerid
 
uint32_t index = -1
 
uint32_t node_count = 0
 
ProofRef proof
 
std::chrono::seconds registration_time
 

Detailed Description

Definition at line 77 of file peermanager.h.

Constructor & Destructor Documentation

◆ Peer()

avalanche::Peer::Peer ( PeerId  peerid_,
ProofRef  proof_ 
)
inline

Definition at line 87 of file peermanager.h.

Member Function Documentation

◆ getProofId()

const ProofId& avalanche::Peer::getProofId ( ) const
inline

Definition at line 91 of file peermanager.h.

◆ getScore()

uint32_t avalanche::Peer::getScore ( ) const
inline

Definition at line 92 of file peermanager.h.

Here is the caller graph for this function:

Member Data Documentation

◆ index

uint32_t avalanche::Peer::index = -1

Definition at line 79 of file peermanager.h.

◆ node_count

uint32_t avalanche::Peer::node_count = 0

Definition at line 80 of file peermanager.h.

◆ peerid

PeerId avalanche::Peer::peerid

Definition at line 78 of file peermanager.h.

◆ proof

ProofRef avalanche::Peer::proof

Definition at line 82 of file peermanager.h.

◆ registration_time

std::chrono::seconds avalanche::Peer::registration_time

Definition at line 85 of file peermanager.h.


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