rippled
LedgerReplayMsgHandler.h
1 //------------------------------------------------------------------------------
2 /*
3  This file is part of rippled: https://github.com/ripple/rippled
4  Copyright (c) 2012, 2020 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_LEDGERREPLAYMSGHANDLER_H_INCLUDED
21 #define RIPPLE_APP_LEDGER_LEDGERREPLAYMSGHANDLER_H_INCLUDED
22 
23 #include <ripple/beast/utility/Journal.h>
24 #include <ripple/protocol/messages.h>
25 
26 namespace ripple {
27 class Application;
28 class LedgerReplayer;
29 
31 {
32 public:
34  ~LedgerReplayMsgHandler() = default;
35 
40  protocol::TMProofPathResponse
43 
49  bool
52 
57  protocol::TMReplayDeltaResponse
60 
66  bool
69 
70 private:
74 };
75 
76 } // namespace ripple
77 
78 #endif
ripple::LedgerReplayMsgHandler::~LedgerReplayMsgHandler
~LedgerReplayMsgHandler()=default
ripple::Application
Definition: Application.h:115
std::shared_ptr
STL class.
ripple::LedgerReplayMsgHandler::LedgerReplayMsgHandler
LedgerReplayMsgHandler(Application &app, LedgerReplayer &replayer)
Definition: LedgerReplayMsgHandler.cpp:28
ripple::LedgerReplayMsgHandler::processReplayDeltaRequest
protocol::TMReplayDeltaResponse processReplayDeltaRequest(std::shared_ptr< protocol::TMReplayDeltaRequest > const &msg)
Process TMReplayDeltaRequest and return TMReplayDeltaResponse.
Definition: LedgerReplayMsgHandler.cpp:178
ripple::LedgerReplayMsgHandler::journal_
beast::Journal journal_
Definition: LedgerReplayMsgHandler.h:73
ripple::LedgerReplayMsgHandler::processProofPathResponse
bool processProofPathResponse(std::shared_ptr< protocol::TMProofPathResponse > const &msg)
Process TMProofPathResponse.
Definition: LedgerReplayMsgHandler.cpp:105
ripple::LedgerReplayMsgHandler::app_
Application & app_
Definition: LedgerReplayMsgHandler.h:71
ripple::LedgerReplayMsgHandler::processProofPathRequest
protocol::TMProofPathResponse processProofPathRequest(std::shared_ptr< protocol::TMProofPathRequest > const &msg)
Process TMProofPathRequest and return TMProofPathResponse.
Definition: LedgerReplayMsgHandler.cpp:38
beast::Journal
A generic endpoint for log messages.
Definition: Journal.h:58
ripple::LedgerReplayMsgHandler::replayer_
LedgerReplayer & replayer_
Definition: LedgerReplayMsgHandler.h:72
ripple
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition: RCLCensorshipDetector.h:29
ripple::LedgerReplayMsgHandler
Definition: LedgerReplayMsgHandler.h:30
ripple::LedgerReplayer
Manages the lifetime of ledger replay tasks.
Definition: LedgerReplayer.h:72
ripple::LedgerReplayMsgHandler::processReplayDeltaResponse
bool processReplayDeltaResponse(std::shared_ptr< protocol::TMReplayDeltaResponse > const &msg)
Process TMReplayDeltaResponse.
Definition: LedgerReplayMsgHandler.cpp:220