|
rippled
|
Generic validations adaptor class for RCL. More...
#include <RCLValidations.h>

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< RCLValidatedLedger > | acquire (LedgerHash const &id) |
| Attempt to acquire the ledger with given id from the network. More... | |
| beast::Journal | journal () const |
Private Attributes | |
| Application & | app_ |
| beast::Journal | j_ |
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 209 of file RCLValidations.h.
Definition at line 213 of file RCLValidations.h.
Definition at line 214 of file RCLValidations.h.
Definition at line 215 of file RCLValidations.h.
| ripple::RCLValidationsAdaptor::RCLValidationsAdaptor | ( | Application & | app, |
| beast::Journal | j | ||
| ) |
Definition at line 119 of file RCLValidations.cpp.
| NetClock::time_point ripple::RCLValidationsAdaptor::now | ( | ) | const |
Current time used to determine if validations are stale.
Definition at line 125 of file RCLValidations.cpp.
| std::optional< RCLValidatedLedger > ripple::RCLValidationsAdaptor::acquire | ( | LedgerHash const & | id | ) |
Attempt to acquire the ledger with given id from the network.
Definition at line 131 of file RCLValidations.cpp.
| beast::Journal ripple::RCLValidationsAdaptor::journal | ( | ) | const |
Definition at line 229 of file RCLValidations.h.
|
private |
Definition at line 235 of file RCLValidations.h.
|
private |
Definition at line 236 of file RCLValidations.h.