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 <xrpld/ledger/ApplyView.h>
24
25#include <xrpl/basics/chrono.h>
26#include <xrpl/beast/utility/Journal.h>
27
28namespace ripple {
29
30class Application;
31class CanonicalTXSet;
32class Ledger;
33class LedgerReplay;
34class SHAMap;
35
55 NetClock::time_point closeTime,
56 bool const closeTimeCorrect,
57 NetClock::duration closeResolution,
58 Application& app,
59 CanonicalTXSet& txns,
60 std::set<TxID>& failedTxs,
62
75 LedgerReplay const& replayData,
76 ApplyFlags applyFlags,
77 Application& app,
79
80} // namespace ripple
81#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.
ApplyFlags
Definition: ApplyView.h:31