|
rippled
|
Wrapper over STValidation for generic Validation code. More...
#include <RCLValidations.h>

Public Types | |
| using | NodeKey = xrpl::PublicKey |
| using | NodeID = xrpl::NodeID |
Public Member Functions | |
| RCLValidation (std::shared_ptr< STValidation > const &v) | |
| Constructor. | |
| uint256 | ledgerID () const |
| Validated ledger's hash. | |
| std::uint32_t | seq () const |
| Validated ledger's sequence number (0 if none) | |
| NetClock::time_point | signTime () const |
| Validation's signing time. | |
| NetClock::time_point | seenTime () const |
| Validated ledger's first seen time. | |
| PublicKey | key () const |
| Public key of validator that published the validation. | |
| NodeID | nodeID () const |
| NodeID of validator that published the validation. | |
| bool | trusted () const |
| Whether the validation is considered trusted. | |
| void | setTrusted () |
| void | setUntrusted () |
| bool | full () const |
| Whether the validation is full (not-partial) | |
| std::optional< std::uint32_t > | loadFee () const |
| Get the load fee of the validation if it exists. | |
| std::uint64_t | cookie () const |
| Get the cookie specified in the validation (0 if not set) | |
| std::shared_ptr< STValidation > | unwrap () const |
| Extract the underlying STValidation being wrapped. | |
Private Attributes | |
| std::shared_ptr< STValidation > | val_ |
Wrapper over STValidation for generic Validation code.
Wraps an STValidation for compatibility with the generic validation code.
Definition at line 23 of file RCLValidations.h.
Definition at line 28 of file RCLValidations.h.
Definition at line 29 of file RCLValidations.h.
| xrpl::RCLValidation::RCLValidation | ( | std::shared_ptr< STValidation > const & | v | ) |
| uint256 xrpl::RCLValidation::ledgerID | ( | ) | const |
Validated ledger's hash.
Definition at line 41 of file RCLValidations.h.
| std::uint32_t xrpl::RCLValidation::seq | ( | ) | const |
Validated ledger's sequence number (0 if none)
Definition at line 48 of file RCLValidations.h.
| NetClock::time_point xrpl::RCLValidation::signTime | ( | ) | const |
Validation's signing time.
Definition at line 55 of file RCLValidations.h.
| NetClock::time_point xrpl::RCLValidation::seenTime | ( | ) | const |
Validated ledger's first seen time.
Definition at line 62 of file RCLValidations.h.
| PublicKey xrpl::RCLValidation::key | ( | ) | const |
Public key of validator that published the validation.
Definition at line 69 of file RCLValidations.h.
| NodeID xrpl::RCLValidation::nodeID | ( | ) | const |
NodeID of validator that published the validation.
Definition at line 76 of file RCLValidations.h.
| bool xrpl::RCLValidation::trusted | ( | ) | const |
Whether the validation is considered trusted.
Definition at line 83 of file RCLValidations.h.
| void xrpl::RCLValidation::setTrusted | ( | ) |
Definition at line 89 of file RCLValidations.h.
| void xrpl::RCLValidation::setUntrusted | ( | ) |
Definition at line 95 of file RCLValidations.h.
| bool xrpl::RCLValidation::full | ( | ) | const |
Whether the validation is full (not-partial)
Definition at line 102 of file RCLValidations.h.
| std::optional< std::uint32_t > xrpl::RCLValidation::loadFee | ( | ) | const |
Get the load fee of the validation if it exists.
Definition at line 109 of file RCLValidations.h.
| std::uint64_t xrpl::RCLValidation::cookie | ( | ) | const |
Get the cookie specified in the validation (0 if not set)
Definition at line 116 of file RCLValidations.h.
| std::shared_ptr< STValidation > xrpl::RCLValidation::unwrap | ( | ) | const |
Extract the underlying STValidation being wrapped.
Definition at line 123 of file RCLValidations.h.
|
private |
Definition at line 25 of file RCLValidations.h.