xrpld
Loading...
Searching...
No Matches
xrpl::AmendmentSet Class Reference

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

Collaboration diagram for xrpl::AmendmentSet:

Public Member Functions

 AmendmentSet (Rules const &rules, TrustedVotes const &trustedVotes, std::scoped_lock< 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 308 of file AmendmentTable.cpp.

Constructor & Destructor Documentation

◆ AmendmentSet()

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

Definition at line 319 of file AmendmentTable.cpp.

Member Function Documentation

◆ passes()

bool xrpl::AmendmentSet::passes ( uint256 const & amendment) const
nodiscard

Definition at line 338 of file AmendmentTable.cpp.

◆ votes()

int xrpl::AmendmentSet::votes ( uint256 const & amendment) const
nodiscard

Definition at line 354 of file AmendmentTable.cpp.

◆ trustedValidations()

int xrpl::AmendmentSet::trustedValidations ( ) const
nodiscard

Definition at line 365 of file AmendmentTable.cpp.

◆ threshold()

int xrpl::AmendmentSet::threshold ( ) const
nodiscard

Definition at line 371 of file AmendmentTable.cpp.

Member Data Documentation

◆ votes_

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

Definition at line 312 of file AmendmentTable.cpp.

◆ trustedValidations_

int xrpl::AmendmentSet::trustedValidations_ = 0
private

Definition at line 314 of file AmendmentTable.cpp.

◆ threshold_

int xrpl::AmendmentSet::threshold_ = 0
private

Definition at line 316 of file AmendmentTable.cpp.