|
rippled
|
Track the list of "amendments". More...


Public Member Functions | |
| AmendmentTableImpl (Application &app, std::chrono::seconds majorityTime, std::vector< FeatureInfo > const &supported, Section const &enabled, Section const &vetoed, beast::Journal journal) | |
| uint256 | find (std::string const &name) const override |
| bool | veto (uint256 const &amendment) override |
| bool | unVeto (uint256 const &amendment) override |
| bool | enable (uint256 const &amendment) override |
| bool | isEnabled (uint256 const &amendment) const override |
| bool | isSupported (uint256 const &amendment) const override |
| bool | hasUnsupportedEnabled () const override |
| returns true if one or more amendments on the network have been enabled that this server does not support More... | |
| std::optional< NetClock::time_point > | firstUnsupportedExpected () const override |
| Json::Value | getJson (bool isAdmin) const override |
| Json::Value | getJson (uint256 const &, bool isAdmin) const override |
| Returns a Json::objectValue. More... | |
| bool | needValidatedLedger (LedgerIndex seq) const override |
| Called to determine whether the amendment logic needs to process a new validated ledger. More... | |
| void | doValidatedLedger (LedgerIndex seq, std::set< uint256 > const &enabled, majorityAmendments_t const &majority) override |
| void | trustChanged (hash_set< PublicKey > const &allTrusted) override |
| std::vector< uint256 > | doValidation (std::set< uint256 > const &enabledAmendments) const override |
| std::vector< uint256 > | getDesired () const override |
| std::map< uint256, std::uint32_t > | doVoting (Rules const &rules, NetClock::time_point closeTime, std::set< uint256 > const &enabledAmendments, majorityAmendments_t const &majorityAmendments, std::vector< std::shared_ptr< STValidation > > const &validations) override |
| void | doValidatedLedger (std::shared_ptr< ReadView const > const &lastValidatedLedger) |
| Called when a new fully-validated ledger is accepted. More... | |
| void | doVoting (std::shared_ptr< ReadView const > const &lastClosedLedger, std::vector< std::shared_ptr< STValidation > > const &parentValidations, std::shared_ptr< SHAMap > const &initialPosition) |
Private Member Functions | |
| AmendmentState & | add (uint256 const &amendment, std::lock_guard< std::mutex > const &lock) |
| AmendmentState * | get (uint256 const &amendment, std::lock_guard< std::mutex > const &lock) |
| AmendmentState const * | get (uint256 const &amendment, std::lock_guard< std::mutex > const &lock) const |
| void | injectJson (Json::Value &v, uint256 const &amendment, AmendmentState const &state, bool isAdmin, std::lock_guard< std::mutex > const &lock) const |
| void | persistVote (uint256 const &amendment, std::string const &name, AmendmentVote vote) const |
Track the list of "amendments".
An "amendment" is an option that can affect transaction processing rules. Amendments are proposed and then adopted or rejected by the network. An Amendment is uniquely identified by its AmendmentID, a 256-bit key.
Definition at line 342 of file AmendmentTable.cpp.
| ripple::AmendmentTableImpl::AmendmentTableImpl | ( | Application & | app, |
| std::chrono::seconds | majorityTime, | ||
| std::vector< FeatureInfo > const & | supported, | ||
| Section const & | enabled, | ||
| Section const & | vetoed, | ||
| beast::Journal | journal | ||
| ) |
Definition at line 465 of file AmendmentTable.cpp.
|
private |
Definition at line 607 of file AmendmentTable.cpp.
|
private |
Definition at line 616 of file AmendmentTable.cpp.
|
private |
Definition at line 626 of file AmendmentTable.cpp.
|
private |
Definition at line 908 of file AmendmentTable.cpp.
|
private |
Definition at line 654 of file AmendmentTable.cpp.
|
overridevirtual |
Implements ripple::AmendmentTable.
Definition at line 640 of file AmendmentTable.cpp.
|
overridevirtual |
Implements ripple::AmendmentTable.
Definition at line 667 of file AmendmentTable.cpp.
|
overridevirtual |
Implements ripple::AmendmentTable.
Definition at line 680 of file AmendmentTable.cpp.
|
overridevirtual |
Implements ripple::AmendmentTable.
Definition at line 693 of file AmendmentTable.cpp.
|
overridevirtual |
Implements ripple::AmendmentTable.
Definition at line 714 of file AmendmentTable.cpp.
|
overridevirtual |
Implements ripple::AmendmentTable.
Definition at line 722 of file AmendmentTable.cpp.
|
overridevirtual |
returns true if one or more amendments on the network have been enabled that this server does not support
Implements ripple::AmendmentTable.
Definition at line 730 of file AmendmentTable.cpp.
|
overridevirtual |
Implements ripple::AmendmentTable.
Definition at line 737 of file AmendmentTable.cpp.
|
overridevirtual |
Implements ripple::AmendmentTable.
Definition at line 943 of file AmendmentTable.cpp.
|
overridevirtual |
Returns a Json::objectValue.
Implements ripple::AmendmentTable.
Definition at line 962 of file AmendmentTable.cpp.
|
overridevirtual |
Called to determine whether the amendment logic needs to process a new validated ledger.
(If it could have changed things.)
Implements ripple::AmendmentTable.
Definition at line 853 of file AmendmentTable.cpp.
|
overridevirtual |
Implements ripple::AmendmentTable.
Definition at line 864 of file AmendmentTable.cpp.
|
overridevirtual |
Implements ripple::AmendmentTable.
Definition at line 901 of file AmendmentTable.cpp.
|
overridevirtual |
Implements ripple::AmendmentTable.
Definition at line 744 of file AmendmentTable.cpp.
|
overridevirtual |
Implements ripple::AmendmentTable.
Definition at line 771 of file AmendmentTable.cpp.
|
overridevirtual |
Implements ripple::AmendmentTable.
Definition at line 778 of file AmendmentTable.cpp.
|
inherited |
Called when a new fully-validated ledger is accepted.
Definition at line 92 of file AmendmentTable.h.
|
inherited |
Definition at line 147 of file AmendmentTable.h.
|
mutableprivate |
Definition at line 345 of file AmendmentTable.cpp.
|
private |
Definition at line 347 of file AmendmentTable.cpp.
|
private |
Definition at line 348 of file AmendmentTable.cpp.
|
private |
Definition at line 351 of file AmendmentTable.cpp.
|
private |
Definition at line 354 of file AmendmentTable.cpp.
|
private |
Definition at line 358 of file AmendmentTable.cpp.
|
private |
Definition at line 361 of file AmendmentTable.cpp.
|
private |
Definition at line 366 of file AmendmentTable.cpp.
|
private |
Definition at line 368 of file AmendmentTable.cpp.
|
private |
Definition at line 371 of file AmendmentTable.cpp.