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


Public Types | |
| using | ClockType = 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 |
| virtual bool | gotLedgerData (LedgerHash const &ledgerHash, std::shared_ptr< Peer >, std::shared_ptr< protocol::TMLedgerData >)=0 |
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 148 of file LedgerReplay_test.cpp.
|
inherited |
Definition at line 31 of file InboundLedgers.h.
| xrpl::test::MagicInboundLedgers::MagicInboundLedgers | ( | LedgerMaster & | ledgerSource, |
| LedgerMaster & | ledgerSink, | ||
| InboundLedgersBehavior | bhvr ) |
Definition at line 151 of file LedgerReplay_test.cpp.
|
overridedefault |
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 161 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 175 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 180 of file LedgerReplay_test.cpp.
|
override |
Definition at line 186 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.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 211 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 216 of file LedgerReplay_test.cpp.
|
overridevirtual |
Returns the rate of historical ledger fetches per minute.
Implements xrpl::InboundLedgers.
Definition at line 222 of file LedgerReplay_test.cpp.
|
overridevirtual |
Called when a complete ledger is obtained.
Implements xrpl::InboundLedgers.
Definition at line 228 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 233 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 237 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 242 of file LedgerReplay_test.cpp.
|
overridevirtual |
Implements xrpl::InboundLedgers.
Definition at line 247 of file LedgerReplay_test.cpp.
|
pure virtualinherited |
Implemented in xrpl::InboundLedgersImp.
| LedgerMaster& xrpl::test::MagicInboundLedgers::ledgerSource |
Definition at line 252 of file LedgerReplay_test.cpp.
| LedgerMaster& xrpl::test::MagicInboundLedgers::ledgerSink |
Definition at line 253 of file LedgerReplay_test.cpp.
| InboundLedgersBehavior xrpl::test::MagicInboundLedgers::bhvr |
Definition at line 254 of file LedgerReplay_test.cpp.