xrpld
Loading...
Searching...
No Matches
BuildLedger.h
1#pragma once
2
3#include <xrpl/basics/chrono.h>
4#include <xrpl/beast/utility/Journal.h>
5#include <xrpl/ledger/ApplyView.h>
6#include <xrpl/protocol/Protocol.h>
7
8#include <memory>
9#include <set>
10
11namespace xrpl {
12
13class Application;
14class CanonicalTXSet;
15class Ledger;
16class LedgerReplay;
17class SHAMap;
18
36std::shared_ptr<Ledger>
38 std::shared_ptr<Ledger const> const& parent,
39 NetClock::time_point closeTime,
40 bool const closeTimeCorrect,
41 NetClock::duration closeResolution,
42 Application& app,
43 CanonicalTXSet& txns,
44 std::set<TxID>& failedTxs,
45 beast::Journal j);
46
58std::shared_ptr<Ledger>
60 LedgerReplay const& replayData,
61 ApplyFlags applyFlags,
62 Application& app,
63 beast::Journal j);
64
65} // namespace xrpl
Holds transactions which were deferred to the next pass of consensus.
std::chrono::time_point< NetClock > time_point
Definition chrono.h:48
std::chrono::duration< rep, period > duration
Definition chrono.h:47
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5
std::shared_ptr< Ledger > buildLedger(std::shared_ptr< Ledger const > const &parent, NetClock::time_point closeTime, bool const closeTimeCorrect, NetClock::duration closeResolution, Application &app, CanonicalTXSet &txns, std::set< TxID > &failedTxs, beast::Journal j)
Build a new ledger by applying consensus transactions.
ApplyFlags
Definition ApplyView.h:27