|
xrpld
|


Public Types | |
| using | ClockType = beast::AbstractClock<std::chrono::steady_clock> |
Public Member Functions | |
| 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. | |
| void | gotData (LedgerHash const &hash, std::shared_ptr< Peer > peer, std::shared_ptr< protocol::TMLedgerData > packetPtr) override |
| We received a TMLedgerData from a peer. | |
| void | giveSet (UInt256 const &hash, std::shared_ptr< SHAMap > const &set, bool fromAcquire) override |
| Add a transaction set. | |
| void | newRound (std::uint32_t seq) override |
| Informs the container if a new consensus round. | |
| void | stop () override |
| 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. | |
Private Types | |
| using | MapType = HashMap<UInt256, InboundTransactionSet> |
Private Attributes | |
| Application & | app_ |
| std::recursive_mutex | lock_ |
| bool | stopping_ {false} |
| MapType | map_ |
| std::uint32_t | seq_ {0} |
| InboundTransactionSet & | zeroSet_ |
| std::function< void(std::shared_ptr< SHAMap > const &, bool)> | gotSet_ |
| std::unique_ptr< PeerSetBuilder > | peerSetBuilder_ |
| beast::Journal | j_ |
Definition at line 54 of file InboundTransactions.cpp.
|
private |
Definition at line 250 of file InboundTransactions.cpp.
|
inherited |
Definition at line 28 of file InboundTransactions.h.
| xrpl::InboundTransactionsImp::InboundTransactionsImp | ( | Application & | app, |
| beast::insight::Collector::Ptr const & | collector, | ||
| std::function< void(std::shared_ptr< SHAMap > const &, bool)> | gotSet, | ||
| std::unique_ptr< PeerSetBuilder > | peerSetBuilder ) |
Definition at line 57 of file InboundTransactions.cpp.
| TransactionAcquire::pointer xrpl::InboundTransactionsImp::getAcquire | ( | UInt256 const & | hash | ) |
Definition at line 74 of file InboundTransactions.cpp.
|
overridevirtual |
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. |
Implements xrpl::InboundTransactions.
Definition at line 88 of file InboundTransactions.cpp.
|
override |
We received a TMLedgerData from a peer.
Definition at line 127 of file InboundTransactions.cpp.
|
overridevirtual |
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. |
Implements xrpl::InboundTransactions.
Definition at line 183 of file InboundTransactions.cpp.
|
overridevirtual |
Informs the container if a new consensus round.
Implements xrpl::InboundTransactions.
Definition at line 211 of file InboundTransactions.cpp.
|
overridevirtual |
Implements xrpl::InboundTransactions.
Definition at line 242 of file InboundTransactions.cpp.
|
pure virtualinherited |
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. |
|
private |
Definition at line 252 of file InboundTransactions.cpp.
|
private |
Definition at line 254 of file InboundTransactions.cpp.
|
private |
Definition at line 256 of file InboundTransactions.cpp.
|
private |
Definition at line 257 of file InboundTransactions.cpp.
|
private |
Definition at line 258 of file InboundTransactions.cpp.
|
private |
Definition at line 261 of file InboundTransactions.cpp.
|
private |
Definition at line 263 of file InboundTransactions.cpp.
|
private |
Definition at line 265 of file InboundTransactions.cpp.
|
private |
Definition at line 267 of file InboundTransactions.cpp.