Clio develop
The XRP Ledger API server.
|
An interface for NetworkValidatedLedgers. More...
#include <NetworkValidatedLedgersInterface.hpp>
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. | |
An interface for NetworkValidatedLedgers.
|
pure 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.
|
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.