rippled
Public Member Functions | Public Attributes | Private Attributes | List of all members
ripple::AmendmentSet Struct Reference

The status of all amendments requested in a given window. More...

Collaboration diagram for ripple::AmendmentSet:
Collaboration graph
[legend]

Public Member Functions

 AmendmentSet ()=default
 
void tally (std::set< uint256 > const &amendments)
 
int votes (uint256 const &amendment) const
 

Public Attributes

int mTrustedValidations = 0
 
int mThreshold = 0
 

Private Attributes

hash_map< uint256, int > votes_
 

Detailed Description

The status of all amendments requested in a given window.

Definition at line 95 of file AmendmentTable.cpp.

Constructor & Destructor Documentation

◆ AmendmentSet()

ripple::AmendmentSet::AmendmentSet ( )
default

Member Function Documentation

◆ tally()

void ripple::AmendmentSet::tally ( std::set< uint256 > const &  amendments)

Definition at line 111 of file AmendmentTable.cpp.

◆ votes()

int ripple::AmendmentSet::votes ( uint256 const &  amendment) const

Definition at line 120 of file AmendmentTable.cpp.

Member Data Documentation

◆ votes_

hash_map<uint256, int> ripple::AmendmentSet::votes_
private

Definition at line 99 of file AmendmentTable.cpp.

◆ mTrustedValidations

int ripple::AmendmentSet::mTrustedValidations = 0

Definition at line 103 of file AmendmentTable.cpp.

◆ mThreshold

int ripple::AmendmentSet::mThreshold = 0

Definition at line 106 of file AmendmentTable.cpp.