rippled
|
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 More... | |
std::shared_ptr< STValidation > | createSTVal (std::shared_ptr< Ledger const > const &ledger, NodeID const &v) |
Create a validation. More... | |
template<class NeedValidation > | |
void | walkHistoryAndAddValidations (NeedValidation &&needVal) |
Walk the ledger history and create validation messages for the ledgers. More... | |
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 562 of file NegativeUNL_test.cpp.
Definition at line 564 of file NegativeUNL_test.cpp.
ripple::test::NetworkHistory::NetworkHistory | ( | beast::unit_test::suite & | suite, |
Parameter const & | p | ||
) |
Definition at line 583 of file NegativeUNL_test.cpp.
void ripple::test::NetworkHistory::createNodes | ( | ) |
Definition at line 595 of file NegativeUNL_test.cpp.
bool ripple::test::NetworkHistory::createLedgerHistory | ( | ) |
create ledger history and apply needed ttUNL_MODIFY tx at flag ledgers
Definition at line 612 of file NegativeUNL_test.cpp.
std::shared_ptr<STValidation> ripple::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 673 of file NegativeUNL_test.cpp.
void ripple::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 697 of file NegativeUNL_test.cpp.
std::shared_ptr<Ledger const> ripple::test::NetworkHistory::lastLedger | ( | ) | const |
Definition at line 719 of file NegativeUNL_test.cpp.
jtx::Env ripple::test::NetworkHistory::env |
Definition at line 724 of file NegativeUNL_test.cpp.
Parameter ripple::test::NetworkHistory::param |
Definition at line 725 of file NegativeUNL_test.cpp.
RCLValidations& ripple::test::NetworkHistory::validations |
Definition at line 726 of file NegativeUNL_test.cpp.
std::vector<PublicKey> ripple::test::NetworkHistory::UNLKeys |
Definition at line 727 of file NegativeUNL_test.cpp.
Definition at line 728 of file NegativeUNL_test.cpp.
std::vector<NodeID> ripple::test::NetworkHistory::UNLNodeIDs |
Definition at line 729 of file NegativeUNL_test.cpp.
Definition at line 730 of file NegativeUNL_test.cpp.
LedgerHistory ripple::test::NetworkHistory::history |
Definition at line 731 of file NegativeUNL_test.cpp.
bool ripple::test::NetworkHistory::goodHistory |
Definition at line 732 of file NegativeUNL_test.cpp.