20#include <xrpld/app/misc/CanonicalTXSet.h>
46 memcpy(ret.
begin(), account.begin(), account.size());
57 txn->getTransactionID()),
78 auto const seqProxy = tx->getSeqProxy();
79 Key const after(effectiveAccount, seqProxy, beast::zero);
80 auto const itrNext{
map_.lower_bound(
after)};
81 if (itrNext !=
map_.end() &&
82 itrNext->first.getAccount() == effectiveAccount &&
83 (!itrNext->second->getSeqProxy().isSeq() ||
84 itrNext->second->getSeqProxy().value() == seqProxy.value() + 1))
86 result = std::move(itrNext->second);
void insert(std::shared_ptr< STTx const > const &txn)
std::shared_ptr< STTx const > popAcctTransaction(std::shared_ptr< STTx const > const &tx)
uint256 accountKey(AccountID const &account)
std::map< Key, std::shared_ptr< STTx const > > map_
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool operator<(Slice const &lhs, Slice const &rhs) noexcept
bool after(NetClock::time_point now, std::uint32_t mark)
Has the specified time passed?