1#include <xrpld/app/ledger/LedgerReplay.h>
3#include <xrpl/ledger/Ledger.h>
4#include <xrpl/protocol/SField.h>
18 for (
auto const& item :
replay_->txMap())
20 auto txPair = replay_->txRead(item.key());
21 auto const txIndex = (*txPair.second)[sfTransactionIndex];
22 orderedTxns_.emplace(txIndex, std::move(txPair.first));
LedgerReplay(std::shared_ptr< Ledger const > parent, std::shared_ptr< Ledger const > replay)
std::map< std::uint32_t, std::shared_ptr< STTx const > > orderedTxns_
std::shared_ptr< Ledger const > replay_
std::shared_ptr< Ledger const > const & replay() const
std::shared_ptr< Ledger const > const & parent() const
std::map< std::uint32_t, std::shared_ptr< STTx const > > const & orderedTxns() const
std::shared_ptr< Ledger const > parent_
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.