rippled
Loading...
Searching...
No Matches
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, TrustedVotes const &trustedVotes, std::lock_guard< std::mutex > const &lock)
 
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_
 
int trustedValidations_ = 0
 
int threshold_ = 0
 

Detailed Description

The status of all amendments requested in a given window.

Definition at line 314 of file AmendmentTable.cpp.

Constructor & Destructor Documentation

◆ AmendmentSet()

ripple::AmendmentSet::AmendmentSet ( Rules const &  rules,
TrustedVotes const &  trustedVotes,
std::lock_guard< std::mutex > const &  lock 
)

Definition at line 325 of file AmendmentTable.cpp.

Member Function Documentation

◆ passes()

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

Definition at line 344 of file AmendmentTable.cpp.

◆ votes()

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

Definition at line 360 of file AmendmentTable.cpp.

◆ trustedValidations()

int ripple::AmendmentSet::trustedValidations ( ) const

Definition at line 371 of file AmendmentTable.cpp.

◆ threshold()

int ripple::AmendmentSet::threshold ( ) const

Definition at line 377 of file AmendmentTable.cpp.

Member Data Documentation

◆ votes_

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

Definition at line 318 of file AmendmentTable.cpp.

◆ trustedValidations_

int ripple::AmendmentSet::trustedValidations_ = 0
private

Definition at line 320 of file AmendmentTable.cpp.

◆ threshold_

int ripple::AmendmentSet::threshold_ = 0
private

Definition at line 322 of file AmendmentTable.cpp.