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

Public Types | |
| using | NodeKey = ripple::PublicKey |
| using | NodeID = ripple::NodeID |
Public Member Functions | |
| RCLValidation (std::shared_ptr< STValidation > const &v) | |
| Constructor. More... | |
| uint256 | ledgerID () const |
| Validated ledger's hash. More... | |
| std::uint32_t | seq () const |
| Validated ledger's sequence number (0 if none) More... | |
| NetClock::time_point | signTime () const |
| Validation's signing time. More... | |
| NetClock::time_point | seenTime () const |
| Validated ledger's first seen time. More... | |
| PublicKey | key () const |
| Public key of validator that published the validation. More... | |
| NodeID | nodeID () const |
| NodeID of validator that published the validation. More... | |
| bool | trusted () const |
| Whether the validation is considered trusted. More... | |
| void | setTrusted () |
| void | setUntrusted () |
| bool | full () const |
| Whether the validation is full (not-partial) More... | |
| std::optional< std::uint32_t > | loadFee () const |
| Get the load fee of the validation if it exists. More... | |
| std::uint64_t | cookie () const |
| Get the cookie specified in the validation (0 if not set) More... | |
| std::shared_ptr< STValidation > | unwrap () const |
| Extract the underlying STValidation being wrapped. More... | |
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 42 of file RCLValidations.h.
Definition at line 47 of file RCLValidations.h.
Definition at line 48 of file RCLValidations.h.
| ripple::RCLValidation::RCLValidation | ( | std::shared_ptr< STValidation > const & | v | ) |
| uint256 ripple::RCLValidation::ledgerID | ( | ) | const |
Validated ledger's hash.
Definition at line 60 of file RCLValidations.h.
| std::uint32_t ripple::RCLValidation::seq | ( | ) | const |
Validated ledger's sequence number (0 if none)
Definition at line 67 of file RCLValidations.h.
| NetClock::time_point ripple::RCLValidation::signTime | ( | ) | const |
Validation's signing time.
Definition at line 74 of file RCLValidations.h.
| NetClock::time_point ripple::RCLValidation::seenTime | ( | ) | const |
Validated ledger's first seen time.
Definition at line 81 of file RCLValidations.h.
| PublicKey ripple::RCLValidation::key | ( | ) | const |
Public key of validator that published the validation.
Definition at line 88 of file RCLValidations.h.
| NodeID ripple::RCLValidation::nodeID | ( | ) | const |
NodeID of validator that published the validation.
Definition at line 95 of file RCLValidations.h.
| bool ripple::RCLValidation::trusted | ( | ) | const |
Whether the validation is considered trusted.
Definition at line 102 of file RCLValidations.h.
| void ripple::RCLValidation::setTrusted | ( | ) |
Definition at line 108 of file RCLValidations.h.
| void ripple::RCLValidation::setUntrusted | ( | ) |
Definition at line 114 of file RCLValidations.h.
| bool ripple::RCLValidation::full | ( | ) | const |
Whether the validation is full (not-partial)
Definition at line 121 of file RCLValidations.h.
| std::optional< std::uint32_t > ripple::RCLValidation::loadFee | ( | ) | const |
Get the load fee of the validation if it exists.
Definition at line 128 of file RCLValidations.h.
| std::uint64_t ripple::RCLValidation::cookie | ( | ) | const |
Get the cookie specified in the validation (0 if not set)
Definition at line 135 of file RCLValidations.h.
| std::shared_ptr< STValidation > ripple::RCLValidation::unwrap | ( | ) | const |
Extract the underlying STValidation being wrapped.
Definition at line 142 of file RCLValidations.h.
|
private |
Definition at line 44 of file RCLValidations.h.