|
rippled
|


Public Types | |
| using | pointer = std::shared_ptr< TransactionAcquire > |
Public Member Functions | |
| TransactionAcquire (Application &app, uint256 const &hash) | |
| ~TransactionAcquire ()=default | |
| SHAMapAddNode | takeNodes (const std::list< SHAMapNodeID > &IDs, const std::list< Blob > &data, std::shared_ptr< Peer > const &) |
| void | init (int startPeers) |
| void | stillNeed () |
| T | shared_from_this (T... args) |
| T | weak_from_this (T... args) |
Protected Types | |
| using | ScopedLockType = std::unique_lock< std::recursive_mutex > |
Protected Member Functions | |
| void | addPeers (std::size_t limit, std::function< bool(std::shared_ptr< Peer > const &)> score) |
Add at most limit peers to this set from the overlay. More... | |
| bool | isDone () const |
| void | invokeOnTimer () |
| Calls onTimer() if in the right state. More... | |
| void | sendRequest (const protocol::TMGetLedger &message, std::shared_ptr< Peer > const &peer) |
| Send a GetLedger message to one or all peers. More... | |
| void | setTimer () |
| Schedule a call to queueJob() after mTimerInterval. More... | |
Protected Attributes | |
| Application & | app_ |
| beast::Journal | m_journal |
| std::recursive_mutex | mLock |
| const uint256 | mHash |
| The hash of the object (in practice, always a ledger) we are trying to fetch. More... | |
| int | mTimeouts |
| bool | mComplete |
| bool | mFailed |
| bool | mProgress |
| Whether forward progress has been made. More... | |
| std::set< Peer::id_t > | mPeers |
| The identifiers of the peers we are tracking. More... | |
Private Member Functions | |
| void | queueJob () override |
| Queue a job to call invokeOnTimer(). More... | |
| void | onTimer (bool progress, ScopedLockType &peerSetLock) override |
| Hook called from invokeOnTimer(). More... | |
| void | onPeerAdded (std::shared_ptr< Peer > const &peer) override |
| Hook called from addPeers(). More... | |
| void | done () |
| void | addPeers (std::size_t limit) |
| void | trigger (std::shared_ptr< Peer > const &) |
| std::weak_ptr< PeerSet > | pmDowncast () override |
| Return a weak pointer to this. More... | |
Static Private Member Functions | |
| static auto & | getCounter () noexcept |
Private Attributes | |
| std::shared_ptr< SHAMap > | mMap |
| bool | mHaveRoot |
| std::chrono::milliseconds | mTimerInterval |
| The minimum time to wait between calls to execute(). More... | |
| boost::asio::basic_waitable_timer< std::chrono::steady_clock > | mTimer |
Definition at line 31 of file TransactionAcquire.h.
Definition at line 37 of file TransactionAcquire.h.
|
protectedinherited |
| ripple::TransactionAcquire::TransactionAcquire | ( | Application & | app, |
| uint256 const & | hash | ||
| ) |
Definition at line 42 of file TransactionAcquire.cpp.
|
default |
| SHAMapAddNode ripple::TransactionAcquire::takeNodes | ( | const std::list< SHAMapNodeID > & | IDs, |
| const std::list< Blob > & | data, | ||
| std::shared_ptr< Peer > const & | peer | ||
| ) |
Definition at line 177 of file TransactionAcquire.cpp.
| void ripple::TransactionAcquire::init | ( | int | startPeers | ) |
Definition at line 253 of file TransactionAcquire.cpp.
| void ripple::TransactionAcquire::stillNeed | ( | ) |
Definition at line 263 of file TransactionAcquire.cpp.
|
overrideprivatevirtual |
Queue a job to call invokeOnTimer().
Implements ripple::PeerSet.
Definition at line 52 of file TransactionAcquire.cpp.
|
overrideprivatevirtual |
Hook called from invokeOnTimer().
Implements ripple::PeerSet.
Definition at line 90 of file TransactionAcquire.cpp.
|
overrideprivatevirtual |
Hook called from addPeers().
Implements ripple::PeerSet.
Definition at line 65 of file TransactionAcquire.h.
|
private |
Definition at line 61 of file TransactionAcquire.cpp.
|
private |
Definition at line 246 of file TransactionAcquire.cpp.
|
private |
Definition at line 112 of file TransactionAcquire.cpp.
|
overrideprivatevirtual |
Return a weak pointer to this.
Implements ripple::PeerSet.
Definition at line 106 of file TransactionAcquire.cpp.
|
protectedinherited |
Add at most limit peers to this set from the overlay.
Definition at line 50 of file PeerSet.cpp.
|
protectedinherited |
Calls onTimer() if in the right state.
Definition at line 101 of file PeerSet.cpp.
|
protectedinherited |
Send a GetLedger message to one or all peers.
Definition at line 127 of file PeerSet.cpp.
|
protectedinherited |
Schedule a call to queueJob() after mTimerInterval.
Definition at line 87 of file PeerSet.cpp.
|
staticprivatenoexceptinherited |
Definition at line 128 of file CountedObject.h.
|
private |
Definition at line 55 of file TransactionAcquire.h.
|
private |
Definition at line 56 of file TransactionAcquire.h.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
privateinherited |
|
privateinherited |
1.8.17