20 #ifndef RIPPLE_APP_LEDGER_INBOUNDLEDGERS_H_INCLUDED
21 #define RIPPLE_APP_LEDGER_INBOUNDLEDGERS_H_INCLUDED
23 #include <ripple/app/ledger/InboundLedger.h>
24 #include <ripple/protocol/RippleLedgerHash.h>
virtual Json::Value getInfo()=0
virtual std::size_t fetchRate()=0
Returns the rate of historical ledger fetches per minute.
std::unique_ptr< InboundLedgers > make_InboundLedgers(Application &app, InboundLedgers::clock_type &clock, beast::insight::Collector::ptr const &collector)
virtual void gotFetchPack()=0
virtual ~InboundLedgers()=default
virtual std::shared_ptr< Ledger const > acquire(uint256 const &hash, std::uint32_t seq, InboundLedger::Reason)=0
virtual void gotStaleData(std::shared_ptr< protocol::TMLedgerData > packet)=0
virtual void onLedgerFetched()=0
Called when a complete ledger is obtained.
virtual void logFailure(uint256 const &h, std::uint32_t seq)=0
Manages the lifetime of inbound ledgers.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual bool gotLedgerData(LedgerHash const &ledgerHash, std::shared_ptr< Peer >, std::shared_ptr< protocol::TMLedgerData >)=0
virtual void clearFailures()=0
virtual bool isFailure(uint256 const &h)=0
virtual std::shared_ptr< InboundLedger > find(LedgerHash const &hash)=0