|
| InboundTransactionsImp (Application &app, beast::insight::Collector::ptr const &collector, std::function< void(std::shared_ptr< SHAMap > const &, bool)> gotSet, std::unique_ptr< PeerSetBuilder > peerSetBuilder) |
|
TransactionAcquire::pointer | getAcquire (uint256 const &hash) |
|
std::shared_ptr< SHAMap > | getSet (uint256 const &hash, bool acquire) override |
| Find and return a transaction set, or nullptr if it is missing. More...
|
|
void | gotData (LedgerHash const &hash, std::shared_ptr< Peer > peer, std::shared_ptr< protocol::TMLedgerData > packet_ptr) override |
| We received a TMLedgerData from a peer. More...
|
|
void | giveSet (uint256 const &hash, std::shared_ptr< SHAMap > const &set, bool fromAcquire) override |
| Add a transaction set. More...
|
|
void | newRound (std::uint32_t seq) override |
| Informs the container if a new consensus round. More...
|
|
void | stop () override |
|
Definition at line 61 of file InboundTransactions.cpp.
◆ MapType
◆ clock_type
◆ InboundTransactionsImp()
◆ getAcquire()
◆ getSet()
Find and return a transaction set, or nullptr if it is missing.
- Parameters
-
setHash | The transaction set ID (digest of the SHAMap root node). |
acquire | Whether to fetch the transaction set from the network if it is missing. |
- Returns
- The transaction set with ID setHash, or nullptr if it is missing.
Implements ripple::InboundTransactions.
Definition at line 96 of file InboundTransactions.cpp.
◆ gotData()
◆ giveSet()
Add a transaction set.
- Parameters
-
setHash | The transaction set ID (should match set.getHash()). |
set | The transaction set. |
acquired | Whether this transaction set was acquired from a peer, or constructed by ourself during consensus. |
Implements ripple::InboundTransactions.
Definition at line 180 of file InboundTransactions.cpp.
◆ newRound()
void ripple::InboundTransactionsImp::newRound |
( |
std::uint32_t |
seq | ) |
|
|
overridevirtual |
◆ stop()
void ripple::InboundTransactionsImp::stop |
( |
| ) |
|
|
overridevirtual |
◆ app_
◆ mLock
◆ stopping_
bool ripple::InboundTransactionsImp::stopping_ {false} |
|
private |
◆ m_map
MapType ripple::InboundTransactionsImp::m_map |
|
private |
◆ m_seq
◆ m_zeroSet
◆ m_gotSet
◆ m_peerSetBuilder
◆ j_