|
xrpld
|
Manages the acquisition and lifetime of transaction sets. More...
#include <InboundTransactions.h>

Public Types | |
| using | ClockType = beast::AbstractClock<std::chrono::steady_clock> |
Public Member Functions | |
| InboundTransactions ()=default | |
| InboundTransactions (InboundTransactions const &)=delete | |
| InboundTransactions & | operator= (InboundTransactions const &)=delete |
| virtual | ~InboundTransactions ()=0 |
| 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. | |
| virtual void | newRound (std::uint32_t seq)=0 |
| Informs the container if a new consensus round. | |
| virtual void | stop ()=0 |
Manages the acquisition and lifetime of transaction sets.
Definition at line 25 of file InboundTransactions.h.
Definition at line 28 of file InboundTransactions.h.
|
default |
|
delete |
|
pure virtualdefault |
|
delete |
|
pure virtual |
Find and return a transaction set, or nullptr if it is missing.
| 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. |
Implemented in xrpl::InboundTransactionsImp.
|
pure virtual |
Add a transaction set from a LedgerData message.
| setHash | The transaction set ID (digest of the SHAMap root node). |
| peer | The peer that sent the message. |
| message | The LedgerData message. |
|
pure virtual |
Add a transaction set.
| 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. |
Implemented in xrpl::InboundTransactionsImp.
|
pure virtual |
Informs the container if a new consensus round.
Implemented in xrpl::InboundTransactionsImp.
|
pure virtual |
Implemented in xrpl::InboundTransactionsImp.