|
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 245 of file AmendmentTable.cpp.
| ripple::AmendmentSet::AmendmentSet | ( | Rules const & | rules, |
| TrustedVotes const & | trustedVotes, | ||
| std::lock_guard< std::mutex > const & | lock | ||
| ) |
Definition at line 275 of file AmendmentTable.cpp.
|
private |
Definition at line 257 of file AmendmentTable.cpp.
| bool ripple::AmendmentSet::passes | ( | uint256 const & | amendment | ) | const |
Definition at line 291 of file AmendmentTable.cpp.
| int ripple::AmendmentSet::votes | ( | uint256 const & | amendment | ) | const |
Definition at line 311 of file AmendmentTable.cpp.
| int ripple::AmendmentSet::trustedValidations | ( | ) | const |
Definition at line 322 of file AmendmentTable.cpp.
| int ripple::AmendmentSet::threshold | ( | ) | const |
Definition at line 328 of file AmendmentTable.cpp.
Definition at line 249 of file AmendmentTable.cpp.
|
private |
Definition at line 250 of file AmendmentTable.cpp.
|
private |
Definition at line 252 of file AmendmentTable.cpp.
|
private |
Definition at line 254 of file AmendmentTable.cpp.
1.8.17