rippled
Loading...
Searching...
No Matches
BuildLedger.h
1//------------------------------------------------------------------------------
2/*
3 This file is part of rippled: https://github.com/ripple/rippled
4 Copyright (c) 2018 Ripple Labs Inc.
5
6 Permission to use, copy, modify, and/or distribute this software for any
7 purpose with or without fee is hereby granted, provided that the above
8 copyright notice and this permission notice appear in all copies.
9
10 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
11 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
12 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
13 ANY SPECIAL , DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
14 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17*/
18//==============================================================================
19
20#ifndef RIPPLE_APP_LEDGER_BUILD_LEDGER_H_INCLUDED
21#define RIPPLE_APP_LEDGER_BUILD_LEDGER_H_INCLUDED
22
23#include <xrpl/basics/chrono.h>
24#include <xrpl/beast/utility/Journal.h>
25#include <xrpl/ledger/ApplyView.h>
26
27namespace ripple {
28
29class Application;
30class CanonicalTXSet;
31class Ledger;
32class LedgerReplay;
33class SHAMap;
34
54 NetClock::time_point closeTime,
55 bool const closeTimeCorrect,
56 NetClock::duration closeResolution,
57 Application& app,
58 CanonicalTXSet& txns,
59 std::set<TxID>& failedTxs,
61
74 LedgerReplay const& replayData,
75 ApplyFlags applyFlags,
76 Application& app,
78
79} // namespace ripple
80#endif
A generic endpoint for log messages.
Definition Journal.h:60
std::chrono::time_point< NetClock > time_point
Definition chrono.h:69
std::chrono::duration< rep, period > duration
Definition chrono.h:68
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:25
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.