xrpld
Loading...
Searching...
No Matches
xrpl::RCLValidationsAdaptor Class Reference

Generic validations adaptor class for RCL. More...

#include <RCLValidations.h>

Collaboration diagram for xrpl::RCLValidationsAdaptor:

Public Types

using Mutex = std::mutex
using Validation = RCLValidation
using Ledger = RCLValidatedLedger

Public Member Functions

 RCLValidationsAdaptor (Application &app, beast::Journal j)
NetClock::time_point now () const
 Current time used to determine if validations are stale.
std::optional< RCLValidatedLedgeracquire (LedgerHash const &id)
 Attempt to acquire the ledger with given id from the network.
beast::Journal journal () const

Private Attributes

Applicationapp_
beast::Journal j_

Detailed Description

Generic validations adaptor class for RCL.

Manages storing and writing stale RCLValidations to the sqlite DB and acquiring validated ledgers from the network.

Definition at line 188 of file RCLValidations.h.

Member Typedef Documentation

◆ Mutex

◆ Validation

◆ Ledger

Constructor & Destructor Documentation

◆ RCLValidationsAdaptor()

xrpl::RCLValidationsAdaptor::RCLValidationsAdaptor ( Application & app,
beast::Journal j )

Definition at line 109 of file RCLValidations.cpp.

Member Function Documentation

◆ now()

NetClock::time_point xrpl::RCLValidationsAdaptor::now ( ) const
nodiscard

Current time used to determine if validations are stale.

Definition at line 114 of file RCLValidations.cpp.

◆ acquire()

std::optional< RCLValidatedLedger > xrpl::RCLValidationsAdaptor::acquire ( LedgerHash const & id)

Attempt to acquire the ledger with given id from the network.

Definition at line 120 of file RCLValidations.cpp.

◆ journal()

beast::Journal xrpl::RCLValidationsAdaptor::journal ( ) const
nodiscard

Definition at line 208 of file RCLValidations.h.

Member Data Documentation

◆ app_

Application& xrpl::RCLValidationsAdaptor::app_
private

Definition at line 214 of file RCLValidations.h.

◆ j_

beast::Journal xrpl::RCLValidationsAdaptor::j_
private

Definition at line 215 of file RCLValidations.h.