rippled
Public Member Functions | Public Attributes | List of all members
ripple::ValidatorList::PublisherListStats Struct Reference

Describes the result of processing a Validator List (UNL), including some of the information from the list which can be used by the caller to know which list publisher is involved. More...

Collaboration diagram for ripple::ValidatorList::PublisherListStats:
Collaboration graph
[legend]

Public Member Functions

 PublisherListStats ()=default
 
 PublisherListStats (ListDisposition d)
 
 PublisherListStats (ListDisposition d, PublicKey key, PublisherStatus stat, std::size_t seq)
 
ListDisposition bestDisposition () const
 
ListDisposition worstDisposition () const
 
void mergeDispositions (PublisherListStats const &src)
 

Public Attributes

std::map< ListDisposition, std::size_tdispositions
 
std::optional< PublicKeypublisherKey
 
PublisherStatus status = PublisherStatus::unavailable
 
std::size_t sequence = 0
 

Detailed Description

Describes the result of processing a Validator List (UNL), including some of the information from the list which can be used by the caller to know which list publisher is involved.

Definition at line 278 of file ValidatorList.h.

Constructor & Destructor Documentation

◆ PublisherListStats() [1/3]

ripple::ValidatorList::PublisherListStats::PublisherListStats ( )
explicitdefault

◆ PublisherListStats() [2/3]

ripple::ValidatorList::PublisherListStats::PublisherListStats ( ListDisposition  d)
explicit

Definition at line 69 of file ValidatorList.cpp.

◆ PublisherListStats() [3/3]

ripple::ValidatorList::PublisherListStats::PublisherListStats ( ListDisposition  d,
PublicKey  key,
PublisherStatus  stat,
std::size_t  seq 
)

Definition at line 74 of file ValidatorList.cpp.

Member Function Documentation

◆ bestDisposition()

ListDisposition ripple::ValidatorList::PublisherListStats::bestDisposition ( ) const

Definition at line 85 of file ValidatorList.cpp.

◆ worstDisposition()

ListDisposition ripple::ValidatorList::PublisherListStats::worstDisposition ( ) const

Definition at line 92 of file ValidatorList.cpp.

◆ mergeDispositions()

void ripple::ValidatorList::PublisherListStats::mergeDispositions ( PublisherListStats const &  src)

Definition at line 99 of file ValidatorList.cpp.

Member Data Documentation

◆ dispositions

std::map<ListDisposition, std::size_t> ripple::ValidatorList::PublisherListStats::dispositions

Definition at line 297 of file ValidatorList.h.

◆ publisherKey

std::optional<PublicKey> ripple::ValidatorList::PublisherListStats::publisherKey

Definition at line 298 of file ValidatorList.h.

◆ status

PublisherStatus ripple::ValidatorList::PublisherListStats::status = PublisherStatus::unavailable

Definition at line 299 of file ValidatorList.h.

◆ sequence

std::size_t ripple::ValidatorList::PublisherListStats::sequence = 0

Definition at line 300 of file ValidatorList.h.