20 #ifndef RIPPLE_APP_LEDGER_TRANSACTIONACQUIRE_H_INCLUDED
21 #define RIPPLE_APP_LEDGER_TRANSACTIONACQUIRE_H_INCLUDED
23 #include <ripple/app/main/Application.h>
24 #include <ripple/overlay/PeerSet.h>
25 #include <ripple/shamap/SHAMap.h>
Tracks the number of instances of an object.
void trigger(std::shared_ptr< Peer > const &)
std::weak_ptr< TimeoutCounter > pmDowncast() override
Return a weak pointer to this.
void addPeers(std::size_t limit)
This class is an "active" object.
std::shared_ptr< SHAMap > mMap
void onTimer(bool progress, ScopedLockType &peerSetLock) override
Hook called from invokeOnTimer().
TransactionAcquire(Application &app, uint256 const &hash, std::unique_ptr< PeerSet > peerSet)
void init(int startPeers)
~TransactionAcquire()=default
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
SHAMapAddNode takeNodes(std::vector< std::pair< SHAMapNodeID, Slice >> const &data, std::shared_ptr< Peer > const &)
std::unique_ptr< PeerSet > mPeerSet