|
xrpld
|
Utility class for creating validators and ledger history. More...

Classes | |
| struct | Parameter |
| Only reasonable parameters can be honored, e.g cannot hasToReEnable when nUNLSize == 0. More... | |
Public Types | |
| using | LedgerHistory = std::vector<std::shared_ptr<Ledger>> |
Public Member Functions | |
| NetworkHistory (beast::unit_test::Suite &suite, Parameter const &p) | |
| void | createNodes () |
| bool | createLedgerHistory () |
| create ledger history and apply needed ttUNL_MODIFY tx at flag ledgers | |
| std::shared_ptr< STValidation > | createSTVal (std::shared_ptr< Ledger const > const &ledger, NodeID const &v) |
| Create a validation. | |
| template<class NeedValidation> | |
| void | walkHistoryAndAddValidations (NeedValidation &&needVal) |
| Walk the ledger history and create validation messages for the ledgers. | |
| std::shared_ptr< Ledger const > | lastLedger () const |
Public Attributes | |
| jtx::Env | env |
| Parameter | param |
| RCLValidations & | validations |
| std::vector< PublicKey > | unlKeys |
| hash_set< PublicKey > | unlKeySet |
| std::vector< NodeID > | unlNodeIDs |
| hash_set< NodeID > | unlNodeIdSet |
| LedgerHistory | history |
| bool | goodHistory |
Utility class for creating validators and ledger history.
Definition at line 523 of file NegativeUNL_test.cpp.
Definition at line 525 of file NegativeUNL_test.cpp.
| xrpl::test::NetworkHistory::NetworkHistory | ( | beast::unit_test::Suite & | suite, |
| Parameter const & | p ) |
Definition at line 544 of file NegativeUNL_test.cpp.
| void xrpl::test::NetworkHistory::createNodes | ( | ) |
Definition at line 554 of file NegativeUNL_test.cpp.
| bool xrpl::test::NetworkHistory::createLedgerHistory | ( | ) |
create ledger history and apply needed ttUNL_MODIFY tx at flag ledgers
Definition at line 571 of file NegativeUNL_test.cpp.
| std::shared_ptr< STValidation > xrpl::test::NetworkHistory::createSTVal | ( | std::shared_ptr< Ledger const > const & | ledger, |
| NodeID const & | v ) |
Create a validation.
| ledger | the ledger the validation validates |
| v | the validator |
Definition at line 631 of file NegativeUNL_test.cpp.
| void xrpl::test::NetworkHistory::walkHistoryAndAddValidations | ( | NeedValidation && | needVal | ) |
Walk the ledger history and create validation messages for the ledgers.
| NeedValidation | a function to decided if a validation is needed |
| needVal | if a validation is needed for this particular combination of ledger and validator |
Definition at line 655 of file NegativeUNL_test.cpp.
|
nodiscard |
Definition at line 677 of file NegativeUNL_test.cpp.
| jtx::Env xrpl::test::NetworkHistory::env |
Definition at line 682 of file NegativeUNL_test.cpp.
| Parameter xrpl::test::NetworkHistory::param |
Definition at line 683 of file NegativeUNL_test.cpp.
| RCLValidations& xrpl::test::NetworkHistory::validations |
Definition at line 684 of file NegativeUNL_test.cpp.
| std::vector<PublicKey> xrpl::test::NetworkHistory::unlKeys |
Definition at line 685 of file NegativeUNL_test.cpp.
Definition at line 686 of file NegativeUNL_test.cpp.
| std::vector<NodeID> xrpl::test::NetworkHistory::unlNodeIDs |
Definition at line 687 of file NegativeUNL_test.cpp.
Definition at line 688 of file NegativeUNL_test.cpp.
| LedgerHistory xrpl::test::NetworkHistory::history |
Definition at line 689 of file NegativeUNL_test.cpp.
| bool xrpl::test::NetworkHistory::goodHistory |
Definition at line 690 of file NegativeUNL_test.cpp.