|
xrpld
|
Simulate a network InboundLedgers. More...


Public Types | |
| using | clock_type = beast::AbstractClock<std::chrono::steady_clock> |
Public Member Functions | |
| MagicInboundLedgers (LedgerMaster &ledgerSource, LedgerMaster &ledgerSink, InboundLedgersBehavior bhvr) | |
| ~MagicInboundLedgers () override=default | |
| std::shared_ptr< Ledger const > | acquire (uint256 const &hash, std::uint32_t seq, InboundLedger::Reason) override |
| void | acquireAsync (uint256 const &hash, std::uint32_t seq, InboundLedger::Reason reason) override |
| std::shared_ptr< InboundLedger > | find (LedgerHash const &hash) override |
| bool | gotLedgerData (LedgerHash const &ledgerHash, std::shared_ptr< Peer >, std::shared_ptr< protocol::TMLedgerData >) override |
| void | gotStaleData (std::shared_ptr< protocol::TMLedgerData > packet) override |
| void | logFailure (uint256 const &h, std::uint32_t seq) override |
| bool | isFailure (uint256 const &h) override |
| void | clearFailures () override |
| json::Value | getInfo () override |
| std::size_t | fetchRate () override |
| Returns the rate of historical ledger fetches per minute. | |
| void | onLedgerFetched () override |
| Called when a complete ledger is obtained. | |
| void | gotFetchPack () override |
| void | sweep () override |
| void | stop () override |
| size_t | cacheSize () override |
Public Attributes | |
| LedgerMaster & | ledgerSource |
| LedgerMaster & | ledgerSink |
| InboundLedgersBehavior | bhvr |
Simulate a network InboundLedgers.
Depending on the configured InboundLedgersBehavior, it either provides the ledger or not
Definition at line 106 of file LedgerReplay_test.cpp.
|
inherited |
Definition at line 16 of file InboundLedgers.h.
| xrpl::test::MagicInboundLedgers::MagicInboundLedgers | ( | LedgerMaster & | ledgerSource, |
| LedgerMaster & | ledgerSink, | ||
| InboundLedgersBehavior | bhvr ) |
Definition at line 109 of file LedgerReplay_test.cpp.
|
overridedefault |
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 119 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 133 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 138 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 144 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 153 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 158 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 163 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 169 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 174 of file LedgerReplay_test.cpp.
|
overridevirtual |
Returns the rate of historical ledger fetches per minute.
Implements xrpl::InboundLedgers.
Definition at line 180 of file LedgerReplay_test.cpp.
|
overridevirtual |
Called when a complete ledger is obtained.
Implements xrpl::InboundLedgers.
Definition at line 186 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 191 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 195 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 200 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 205 of file LedgerReplay_test.cpp.
| LedgerMaster& xrpl::test::MagicInboundLedgers::ledgerSource |
Definition at line 210 of file LedgerReplay_test.cpp.
| LedgerMaster& xrpl::test::MagicInboundLedgers::ledgerSink |
Definition at line 211 of file LedgerReplay_test.cpp.
| InboundLedgersBehavior xrpl::test::MagicInboundLedgers::bhvr |
Definition at line 212 of file LedgerReplay_test.cpp.