rippled
Public Types | Public Member Functions | Private Attributes | List of all members
ripple::RCLValidationsAdaptor Class Reference

Generic validations adaptor class for RCL. More...

Collaboration diagram for ripple::RCLValidationsAdaptor:
Collaboration graph
[legend]

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. More...
 
std::optional< RCLValidatedLedgeracquire (LedgerHash const &id)
 Attempt to acquire the ledger with given id from the network. More...
 
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 205 of file RCLValidations.h.

Member Typedef Documentation

◆ Mutex

Definition at line 209 of file RCLValidations.h.

◆ Validation

Definition at line 210 of file RCLValidations.h.

◆ Ledger

Definition at line 211 of file RCLValidations.h.

Constructor & Destructor Documentation

◆ RCLValidationsAdaptor()

ripple::RCLValidationsAdaptor::RCLValidationsAdaptor ( Application app,
beast::Journal  j 
)

Definition at line 115 of file RCLValidations.cpp.

Member Function Documentation

◆ now()

NetClock::time_point ripple::RCLValidationsAdaptor::now ( ) const

Current time used to determine if validations are stale.

Definition at line 121 of file RCLValidations.cpp.

◆ acquire()

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

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

Definition at line 127 of file RCLValidations.cpp.

◆ journal()

beast::Journal ripple::RCLValidationsAdaptor::journal ( ) const

Definition at line 225 of file RCLValidations.h.

Member Data Documentation

◆ app_

Application& ripple::RCLValidationsAdaptor::app_
private

Definition at line 231 of file RCLValidations.h.

◆ j_

beast::Journal ripple::RCLValidationsAdaptor::j_
private

Definition at line 232 of file RCLValidations.h.