|
xrpld
|
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 > 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 34 of file RCLValidations.h.
Definition at line 39 of file RCLValidations.h.
Definition at line 40 of file RCLValidations.h.
| xrpl::RCLValidation::RCLValidation | ( | std::shared_ptr< STValidation > | v | ) |
|
nodiscard |
Validated ledger's hash.
Definition at line 55 of file RCLValidations.h.
|
nodiscard |
Validated ledger's sequence number (0 if none).
Definition at line 64 of file RCLValidations.h.
|
nodiscard |
Validation's signing time.
Definition at line 73 of file RCLValidations.h.
|
nodiscard |
Validated ledger's first seen time.
Definition at line 82 of file RCLValidations.h.
|
nodiscard |
Public key of validator that published the validation.
Definition at line 91 of file RCLValidations.h.
|
nodiscard |
NodeID of validator that published the validation.
Definition at line 100 of file RCLValidations.h.
|
nodiscard |
Whether the validation is considered trusted.
Definition at line 109 of file RCLValidations.h.
| void xrpl::RCLValidation::setTrusted | ( | ) |
Definition at line 115 of file RCLValidations.h.
| void xrpl::RCLValidation::setUntrusted | ( | ) |
Definition at line 121 of file RCLValidations.h.
|
nodiscard |
Whether the validation is full (not-partial).
Definition at line 130 of file RCLValidations.h.
|
nodiscard |
Get the load fee of the validation if it exists.
Definition at line 139 of file RCLValidations.h.
|
nodiscard |
Get the cookie specified in the validation (0 if not set).
Definition at line 148 of file RCLValidations.h.
|
nodiscard |
Extract the underlying STValidation being wrapped.
Definition at line 157 of file RCLValidations.h.
|
private |
Definition at line 36 of file RCLValidations.h.