Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
avalanche::Peer Struct Reference

#include <peermanager.h>

Collaboration diagram for avalanche::Peer:
[legend]

Public Member Functions

 Peer (PeerId peerid_, ProofRef proof_, std::chrono::seconds nextPossibleConflictTime_)
 
const ProofIdgetProofId () const
 
uint32_t getScore () const
 

Public Attributes

PeerId peerid
 
uint32_t index = -1
 
uint32_t node_count = 0
 
ProofRef proof
 
bool hasFinalized = false
 
std::chrono::seconds registration_time
 
std::chrono::seconds nextPossibleConflictTime
 
double availabilityScore = 0.0
 

Static Public Attributes

static constexpr auto DANGLING_TIMEOUT = 15min
 Consider dropping the peer if no node is attached after this timeout expired.
 

Detailed Description

Definition at line 84 of file peermanager.h.

Constructor & Destructor Documentation

◆ Peer()

avalanche::Peer::Peer ( PeerId  peerid_,
ProofRef  proof_,
std::chrono::seconds  nextPossibleConflictTime_ 
)
inline

Definition at line 104 of file peermanager.h.

Member Function Documentation

◆ getProofId()

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

Definition at line 110 of file peermanager.h.

◆ getScore()

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

Definition at line 111 of file peermanager.h.

Here is the caller graph for this function:

Member Data Documentation

◆ availabilityScore

double avalanche::Peer::availabilityScore = 0.0

Definition at line 96 of file peermanager.h.

◆ DANGLING_TIMEOUT

constexpr auto avalanche::Peer::DANGLING_TIMEOUT = 15min
staticconstexpr

Consider dropping the peer if no node is attached after this timeout expired.

Definition at line 102 of file peermanager.h.

◆ hasFinalized

bool avalanche::Peer::hasFinalized = false

Definition at line 90 of file peermanager.h.

◆ index

uint32_t avalanche::Peer::index = -1

Definition at line 86 of file peermanager.h.

◆ nextPossibleConflictTime

std::chrono::seconds avalanche::Peer::nextPossibleConflictTime

Definition at line 94 of file peermanager.h.

◆ node_count

uint32_t avalanche::Peer::node_count = 0

Definition at line 87 of file peermanager.h.

◆ peerid

PeerId avalanche::Peer::peerid

Definition at line 85 of file peermanager.h.

◆ proof

ProofRef avalanche::Peer::proof

Definition at line 89 of file peermanager.h.

◆ registration_time

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

Definition at line 93 of file peermanager.h.


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