20 #ifndef RIPPLE_APP_CONSENSUS_RCLCXTX_H_INCLUDED
21 #define RIPPLE_APP_CONSENSUS_RCLCXTX_H_INCLUDED
23 #include <ripple/app/misc/CanonicalTXSet.h>
24 #include <ripple/basics/chrono.h>
25 #include <ripple/protocol/UintTypes.h>
26 #include <ripple/shamap/SHAMap.h>
106 return map_->delItem(entry);
135 return map_->hasItem(entry);
152 return map_->peekItem(entry);
159 return map_->getHash().as_uint256();
177 map_->compare(*(j.
map_), delta, 65536);
180 for (
auto const& [k, v] : delta)
182 assert((v.first && !v.second) || (v.second && !v.first));
184 ret[k] =
static_cast<bool>(v.first);
RCLTxSet(MutableTxSet const &m)
Constructor from a previously created MutableTxSet.
std::shared_ptr< const SHAMapItem > const & find(Tx::ID const &entry) const
Lookup a transaction.
bool insert(Tx const &t)
Insert a new transaction into the set.
uint256 ID
Unique identifier/hash of transaction.
MutableTxSet(RCLTxSet const &src)
std::shared_ptr< SHAMap > map_
The SHAMap representing the transactions.
std::shared_ptr< SHAMap > map_
The SHAMap representing the transactions.
uint256 const & key() const
bool exists(Tx::ID const &entry) const
Test if a transaction is in the set.
Represents a set of transactions in RCLConsensus.
ID id() const
The unique ID/hash of the transaction set.
const SHAMapItem tx_
The SHAMapItem that represents the transaction.
std::map< Tx::ID, bool > compare(RCLTxSet const &j) const
Find transactions not in common between this and another transaction set.
RCLTxSet(std::shared_ptr< SHAMap > m)
Constructor.
Blob const & peekData() const
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool erase(Tx::ID const &entry)
Remove a transaction from the set.
RCLCxTx(SHAMapItem const &txn)
Constructor.
uint256 ID
Unique identifier/hash of the set of transactions.
Represents a transaction in RCLConsensus.
ID const & id() const
The unique identifier/hash of the transaction.