|
Clio
develop
The XRP Ledger API server.
|
An interface for NetworkValidatedLedgers. More...
#include <NetworkValidatedLedgersInterface.hpp>

Public Types | |
| using | SignalType = boost::signals2::signal<void(uint32_t)> |
Public Member Functions | |
| virtual void | push (uint32_t idx)=0 |
| Notify the datastructure that idx has been validated by the network. | |
| virtual std::optional< uint32_t > | getMostRecent ()=0 |
| Get most recently validated sequence. | |
| virtual bool | waitUntilValidatedByNetwork (uint32_t sequence, std::optional< uint32_t > maxWaitMs={})=0 |
| Waits for the sequence to be validated by the network. | |
| virtual boost::signals2::scoped_connection | subscribe (SignalType::slot_type const &subscriber)=0 |
| Allows clients to get notified when a new validated ledger becomes known to Clio. | |
An interface for NetworkValidatedLedgers.
|
nodiscardpure virtual |
Get most recently validated sequence.
If no ledgers are known to have been validated, this function waits until the next ledger is validated
Implemented in etl::NetworkValidatedLedgers.
|
pure virtual |
Notify the datastructure that idx has been validated by the network.
| idx | Sequence validated by network |
Implemented in etl::NetworkValidatedLedgers.
|
nodiscardpure virtual |
Allows clients to get notified when a new validated ledger becomes known to Clio.
| subscriber | The slot to connect |
Implemented in etl::NetworkValidatedLedgers.
|
pure virtual |
Waits for the sequence to be validated by the network.
| sequence | The sequence to wait for |
| maxWaitMs | Maximum time to wait for the sequence to be validated. If empty, wait indefinitely |
Implemented in etl::NetworkValidatedLedgers.