3#include <xrpld/overlay/Peer.h>
5#include <xrpl/beast/clock/abstract_clock.h>
6#include <xrpl/shamap/SHAMap.h>
Abstract interface to a clock.
std::shared_ptr< Collector > ptr
InboundTransactions()=default
InboundTransactions(InboundTransactions const &)=delete
virtual ~InboundTransactions()=0
beast::AbstractClock< std::chrono::steady_clock > clock_type
virtual void newRound(std::uint32_t seq)=0
Informs the container if a new consensus round.
virtual std::shared_ptr< SHAMap > getSet(uint256 const &setHash, bool acquire)=0
Find and return a transaction set, or nullptr if it is missing.
virtual void gotData(uint256 const &setHash, std::shared_ptr< Peer > peer, std::shared_ptr< protocol::TMLedgerData > message)=0
Add a transaction set from a LedgerData message.
virtual void giveSet(uint256 const &setHash, std::shared_ptr< SHAMap > const &set, bool acquired)=0
Add a transaction set.
InboundTransactions & operator=(InboundTransactions const &)=delete
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::unique_ptr< InboundTransactions > makeInboundTransactions(Application &app, beast::insight::Collector::ptr const &collector, std::function< void(std::shared_ptr< SHAMap > const &, bool)> gotSet)
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,...