Represents a set of transactions in RCLConsensus.
More...
#include <RCLCxTx.h>
|
| using | ID = uint256 |
| | Unique identifier/hash of the set of transactions.
|
| |
| using | Tx = RCLCxTx |
| | The type that corresponds to a single transaction.
|
| |
Represents a set of transactions in RCLConsensus.
RCLTxSet is a thin wrapper over a SHAMap that stores the set of transactions.
Definition at line 42 of file RCLCxTx.h.
◆ ID
Unique identifier/hash of the set of transactions.
Definition at line 46 of file RCLCxTx.h.
◆ Tx
The type that corresponds to a single transaction.
Definition at line 48 of file RCLCxTx.h.
◆ RCLTxSet() [1/2]
Constructor.
- Parameters
-
Definition at line 89 of file RCLCxTx.h.
◆ RCLTxSet() [2/2]
◆ exists()
| bool xrpl::RCLTxSet::exists |
( |
Tx::ID const & |
entry | ) |
const |
Test if a transaction is in the set.
- Parameters
-
| entry | The ID of transaction to test. |
- Returns
- Whether the transaction is in the set.
Definition at line 108 of file RCLCxTx.h.
◆ find()
| boost::intrusive_ptr< SHAMapItem const > const & xrpl::RCLTxSet::find |
( |
Tx::ID const & |
entry | ) |
const |
Lookup a transaction.
- Parameters
-
| entry | The ID of the transaction to find. |
- Returns
- A shared pointer to the SHAMapItem.
- Note
- Since find may not succeed, this returns a
std::shared_ptr<const SHAMapItem> rather than a Tx, which cannot refer to a missing transaction. The generic consensus code uses the shared_ptr semantics to know whether the find was successful and properly creates a Tx as needed.
Definition at line 125 of file RCLCxTx.h.
◆ id()
| ID xrpl::RCLTxSet::id |
( |
| ) |
const |
The unique ID/hash of the transaction set.
Definition at line 132 of file RCLCxTx.h.
◆ compare()
Find transactions not in common between this and another transaction set.
- Parameters
-
- Returns
- Map of transactions in this set and
j but not both. The key is the transaction ID and the value is a bool of the transaction exists in this set.
Definition at line 146 of file RCLCxTx.h.
◆ map_