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

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 Member Functions | |
| void | computeThreshold (int trustedValidations, Rules const &rules) |
Private Attributes | |
| hash_map< uint256, int > | votes_ |
| Rules const & | rules_ |
| int | trustedValidations_ = 0 |
| int | threshold_ = 0 |
The status of all amendments requested in a given window.
Definition at line 314 of file AmendmentTable.cpp.
| ripple::AmendmentSet::AmendmentSet | ( | Rules const & | rules, |
| TrustedVotes const & | trustedVotes, | ||
| std::lock_guard< std::mutex > const & | lock | ||
| ) |
Definition at line 344 of file AmendmentTable.cpp.
|
private |
Definition at line 326 of file AmendmentTable.cpp.
| bool ripple::AmendmentSet::passes | ( | uint256 const & | amendment | ) | const |
Definition at line 360 of file AmendmentTable.cpp.
| int ripple::AmendmentSet::votes | ( | uint256 const & | amendment | ) | const |
Definition at line 380 of file AmendmentTable.cpp.
| int ripple::AmendmentSet::trustedValidations | ( | ) | const |
Definition at line 391 of file AmendmentTable.cpp.
| int ripple::AmendmentSet::threshold | ( | ) | const |
Definition at line 397 of file AmendmentTable.cpp.
Definition at line 318 of file AmendmentTable.cpp.
|
private |
Definition at line 319 of file AmendmentTable.cpp.
|
private |
Definition at line 321 of file AmendmentTable.cpp.
|
private |
Definition at line 323 of file AmendmentTable.cpp.