20 #ifndef RIPPLE_APP_LEDGER_INBOUNDTRANSACTIONS_H_INCLUDED
21 #define RIPPLE_APP_LEDGER_INBOUNDTRANSACTIONS_H_INCLUDED
23 #include <ripple/overlay/Peer.h>
24 #include <ripple/shamap/SHAMap.h>
25 #include <ripple/beast/clock/abstract_clock.h>
26 #include <ripple/core/Stoppable.h>
Provides an interface for starting and stopping.
virtual Json::Value getInfo()=0
virtual std::shared_ptr< SHAMap > getSet(uint256 const &setHash, bool acquire)=0
Retrieves a transaction set by hash.
InboundTransactions & operator=(InboundTransactions const &)=delete
bool set(T &target, std::string const &name, Section const §ion)
Set a value from a configuration Section If the named value is not found or doesn't parse as a T,...
std::unique_ptr< InboundTransactions > make_InboundTransactions(Application &app, InboundLedgers::clock_type &clock, Stoppable &parent, beast::insight::Collector::ptr const &collector, std::function< void(std::shared_ptr< SHAMap > const &, bool)> gotSet)
InboundTransactions()=default
virtual void newRound(std::uint32_t seq)=0
Informs the container if a new consensus round.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
virtual ~InboundTransactions()=0
virtual void giveSet(uint256 const &setHash, std::shared_ptr< SHAMap > const &set, bool acquired)=0
Gives set to the container.
Manages the acquisition and lifetime of transaction sets.
virtual void gotData(uint256 const &setHash, std::shared_ptr< Peer >, std::shared_ptr< protocol::TMLedgerData >)=0
Gives data to an inbound transaction set.