rippled
Loading...
Searching...
No Matches
AcceptedLedger.cpp
1#include <xrpld/app/ledger/AcceptedLedger.h>
2
3#include <algorithm>
4
5namespace ripple {
6
9 Application& app)
10 : mLedger(ledger)
11{
12 transactions_.reserve(256);
13
14 auto insertAll = [&](auto const& txns) {
15 for (auto const& item : txns)
17 ledger, item.first, item.second));
18 };
19
20 transactions_.reserve(256);
21 insertAll(ledger->txs);
22
24 transactions_.begin(),
25 transactions_.end(),
26 [](auto const& a, auto const& b) {
27 return a->getTxnSeq() < b->getTxnSeq();
28 });
29}
30
31} // namespace ripple
std::vector< std::unique_ptr< AcceptedLedgerTx > > transactions_
AcceptedLedger(std::shared_ptr< ReadView const > const &ledger, Application &app)
T is_same_v
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6
T sort(T... args)