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

HashMap< UInt256, int > votes_
int trustedValidations_ = 0
int threshold_ = 0

Detailed Description

The status of all amendments requested in a given window.

Definition at line 324 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 335 of file AmendmentTable.cpp.

Member Function Documentation

◆ passes()

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

Definition at line 354 of file AmendmentTable.cpp.

◆ votes()

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

Definition at line 370 of file AmendmentTable.cpp.

◆ trustedValidations()

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

Definition at line 381 of file AmendmentTable.cpp.

◆ threshold()

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

Definition at line 387 of file AmendmentTable.cpp.

Member Data Documentation

◆ votes_

HashMap<UInt256, int> xrpl::AmendmentSet::votes_
private

Definition at line 328 of file AmendmentTable.cpp.

◆ trustedValidations_

int xrpl::AmendmentSet::trustedValidations_ = 0
private

Definition at line 330 of file AmendmentTable.cpp.

◆ threshold_

int xrpl::AmendmentSet::threshold_ = 0
private

Definition at line 332 of file AmendmentTable.cpp.