|
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 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. More... | |
| virtual void | onLedgerFetched () override |
| Called when a complete ledger is obtained. More... | |
| virtual void | gotFetchPack () override |
| virtual void | sweep () override |
| virtual void | stop () 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 82 of file LedgerReplay_test.cpp.
|
inherited |
Definition at line 36 of file InboundLedgers.h.
| ripple::test::MagicInboundLedgers::MagicInboundLedgers | ( | LedgerMaster & | ledgerSource, |
| LedgerMaster & | ledgerSink, | ||
| InboundLedgersBehavior | bhvr | ||
| ) |
Definition at line 85 of file LedgerReplay_test.cpp.
|
virtualdefault |
|
overridevirtual |
Implements ripple::InboundLedgers.
Definition at line 95 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements ripple::InboundLedgers.
Definition at line 110 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements ripple::InboundLedgers.
Definition at line 116 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements ripple::InboundLedgers.
Definition at line 125 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements ripple::InboundLedgers.
Definition at line 130 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements ripple::InboundLedgers.
Definition at line 135 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements ripple::InboundLedgers.
Definition at line 141 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements ripple::InboundLedgers.
Definition at line 146 of file LedgerReplay_test.cpp.
|
overridevirtual |
Returns the rate of historical ledger fetches per minute.
Implements ripple::InboundLedgers.
Definition at line 152 of file LedgerReplay_test.cpp.
|
overridevirtual |
Called when a complete ledger is obtained.
Implements ripple::InboundLedgers.
Definition at line 158 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements ripple::InboundLedgers.
Definition at line 163 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements ripple::InboundLedgers.
Definition at line 167 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements ripple::InboundLedgers.
Definition at line 172 of file LedgerReplay_test.cpp.
| LedgerMaster& ripple::test::MagicInboundLedgers::ledgerSource |
Definition at line 176 of file LedgerReplay_test.cpp.
| LedgerMaster& ripple::test::MagicInboundLedgers::ledgerSink |
Definition at line 177 of file LedgerReplay_test.cpp.
| InboundLedgersBehavior ripple::test::MagicInboundLedgers::bhvr |
Definition at line 178 of file LedgerReplay_test.cpp.
1.8.17