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

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

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

Public Member Functions

 AmendmentSet (Rules const &rules, std::vector< std::shared_ptr< STValidation >> const &valSet)
 
bool passes (uint256 const &amendment) const
 
int votes (uint256 const &amendment) const
 
int trustedValidations () const
 
int threshold () const
 

Private Attributes

hash_map< uint256, int > votes_
 
Rules const & rules_
 
int trustedValidations_ = 0
 
int threshold_ = 0
 

Detailed Description

The status of all amendments requested in a given window.

Definition at line 96 of file AmendmentTable.cpp.

Constructor & Destructor Documentation

◆ AmendmentSet()

ripple::AmendmentSet::AmendmentSet ( Rules const &  rules,
std::vector< std::shared_ptr< STValidation >> const &  valSet 
)

Definition at line 108 of file AmendmentTable.cpp.

Member Function Documentation

◆ passes()

bool ripple::AmendmentSet::passes ( uint256 const &  amendment) const

Definition at line 147 of file AmendmentTable.cpp.

◆ votes()

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

Definition at line 167 of file AmendmentTable.cpp.

◆ trustedValidations()

int ripple::AmendmentSet::trustedValidations ( ) const

Definition at line 178 of file AmendmentTable.cpp.

◆ threshold()

int ripple::AmendmentSet::threshold ( ) const

Definition at line 184 of file AmendmentTable.cpp.

Member Data Documentation

◆ votes_

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

Definition at line 100 of file AmendmentTable.cpp.

◆ rules_

Rules const& ripple::AmendmentSet::rules_
private

Definition at line 101 of file AmendmentTable.cpp.

◆ trustedValidations_

int ripple::AmendmentSet::trustedValidations_ = 0
private

Definition at line 103 of file AmendmentTable.cpp.

◆ threshold_

int ripple::AmendmentSet::threshold_ = 0
private

Definition at line 105 of file AmendmentTable.cpp.