|
rippled
|
Simulate a network InboundLedgers. More...


Public Types | |
| using | clock_type = beast::abstract_clock< std::chrono::steady_clock > |
Public Member Functions | |
| MagicInboundLedgers (LedgerMaster &ledgerSource, LedgerMaster &ledgerSink, InboundLedgersBehavior bhvr) | |
| virtual | ~MagicInboundLedgers ()=default |
| virtual std::shared_ptr< Ledger const > | acquire (uint256 const &hash, std::uint32_t seq, InboundLedger::Reason) override |
| virtual void | acquireAsync (uint256 const &hash, std::uint32_t seq, InboundLedger::Reason reason) override |
| virtual std::shared_ptr< InboundLedger > | find (LedgerHash const &hash) override |
| virtual bool | gotLedgerData (LedgerHash const &ledgerHash, std::shared_ptr< Peer >, std::shared_ptr< protocol::TMLedgerData >) override |
| virtual void | gotStaleData (std::shared_ptr< protocol::TMLedgerData > packet) override |
| virtual void | logFailure (uint256 const &h, std::uint32_t seq) override |
| virtual bool | isFailure (uint256 const &h) override |
| virtual void | clearFailures () override |
| virtual Json::Value | getInfo () override |
| virtual std::size_t | fetchRate () override |
| Returns the rate of historical ledger fetches per minute. | |
| virtual void | onLedgerFetched () override |
| Called when a complete ledger is obtained. | |
| virtual void | gotFetchPack () override |
| virtual void | sweep () override |
| virtual void | stop () override |
| virtual 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 60 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 63 of file LedgerReplay_test.cpp.
|
virtualdefault |
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 70 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 84 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 89 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 95 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 101 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 106 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 111 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 117 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 122 of file LedgerReplay_test.cpp.
|
overridevirtual |
Returns the rate of historical ledger fetches per minute.
Implements xrpl::InboundLedgers.
Definition at line 128 of file LedgerReplay_test.cpp.
|
overridevirtual |
Called when a complete ledger is obtained.
Implements xrpl::InboundLedgers.
Definition at line 134 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 139 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 143 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 148 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 153 of file LedgerReplay_test.cpp.
| LedgerMaster& xrpl::test::MagicInboundLedgers::ledgerSource |
Definition at line 158 of file LedgerReplay_test.cpp.
| LedgerMaster& xrpl::test::MagicInboundLedgers::ledgerSink |
Definition at line 159 of file LedgerReplay_test.cpp.
| InboundLedgersBehavior xrpl::test::MagicInboundLedgers::bhvr |
Definition at line 160 of file LedgerReplay_test.cpp.