rippled
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
xrpl::LedgerReplayMsgHandler Class Referencefinal

#include <LedgerReplayMsgHandler.h>

Collaboration diagram for xrpl::LedgerReplayMsgHandler:
Collaboration graph
[legend]

Public Member Functions

 LedgerReplayMsgHandler (Application &app, LedgerReplayer &replayer)
 
 ~LedgerReplayMsgHandler ()=default
 
protocol::TMProofPathResponse processProofPathRequest (std::shared_ptr< protocol::TMProofPathRequest > const &msg)
 Process TMProofPathRequest and return TMProofPathResponse.
 
bool processProofPathResponse (std::shared_ptr< protocol::TMProofPathResponse > const &msg)
 Process TMProofPathResponse.
 
protocol::TMReplayDeltaResponse processReplayDeltaRequest (std::shared_ptr< protocol::TMReplayDeltaRequest > const &msg)
 Process TMReplayDeltaRequest and return TMReplayDeltaResponse.
 
bool processReplayDeltaResponse (std::shared_ptr< protocol::TMReplayDeltaResponse > const &msg)
 Process TMReplayDeltaResponse.
 

Private Attributes

Applicationapp_
 
LedgerReplayerreplayer_
 
beast::Journal journal_
 

Detailed Description

Definition at line 10 of file LedgerReplayMsgHandler.h.

Constructor & Destructor Documentation

◆ LedgerReplayMsgHandler()

xrpl::LedgerReplayMsgHandler::LedgerReplayMsgHandler ( Application app,
LedgerReplayer replayer 
)

Definition at line 11 of file LedgerReplayMsgHandler.cpp.

◆ ~LedgerReplayMsgHandler()

xrpl::LedgerReplayMsgHandler::~LedgerReplayMsgHandler ( )
default

Member Function Documentation

◆ processProofPathRequest()

protocol::TMProofPathResponse xrpl::LedgerReplayMsgHandler::processProofPathRequest ( std::shared_ptr< protocol::TMProofPathRequest > const &  msg)

Process TMProofPathRequest and return TMProofPathResponse.

Note
check has_error() and error() of the response for error

Definition at line 17 of file LedgerReplayMsgHandler.cpp.

◆ processProofPathResponse()

bool xrpl::LedgerReplayMsgHandler::processProofPathResponse ( std::shared_ptr< protocol::TMProofPathResponse > const &  msg)

Process TMProofPathResponse.

Returns
false if the response message has bad format or bad data; true otherwise

Definition at line 79 of file LedgerReplayMsgHandler.cpp.

◆ processReplayDeltaRequest()

protocol::TMReplayDeltaResponse xrpl::LedgerReplayMsgHandler::processReplayDeltaRequest ( std::shared_ptr< protocol::TMReplayDeltaRequest > const &  msg)

Process TMReplayDeltaRequest and return TMReplayDeltaResponse.

Note
check has_error() and error() of the response for error

Definition at line 147 of file LedgerReplayMsgHandler.cpp.

◆ processReplayDeltaResponse()

bool xrpl::LedgerReplayMsgHandler::processReplayDeltaResponse ( std::shared_ptr< protocol::TMReplayDeltaResponse > const &  msg)

Process TMReplayDeltaResponse.

Returns
false if the response message has bad format or bad data; true otherwise

Definition at line 185 of file LedgerReplayMsgHandler.cpp.

Member Data Documentation

◆ app_

Application& xrpl::LedgerReplayMsgHandler::app_
private

Definition at line 47 of file LedgerReplayMsgHandler.h.

◆ replayer_

LedgerReplayer& xrpl::LedgerReplayMsgHandler::replayer_
private

Definition at line 48 of file LedgerReplayMsgHandler.h.

◆ journal_

beast::Journal xrpl::LedgerReplayMsgHandler::journal_
private

Definition at line 49 of file LedgerReplayMsgHandler.h.