23#include <boost/signals2/connection.hpp>
24#include <boost/signals2/signal.hpp>
25#include <boost/signals2/variadic_signal.hpp>
37 using SignalType = boost::signals2::signal<void(uint32_t)>;
56 [[nodiscard]]
virtual std::optional<uint32_t>
76 [[nodiscard]]
virtual boost::signals2::scoped_connection
77 subscribe(SignalType::slot_type
const& subscriber) = 0;
An interface for NetworkValidatedLedgers.
Definition NetworkValidatedLedgersInterface.hpp:35
virtual void push(uint32_t idx)=0
Notify the datastructure that idx has been validated by the network.
virtual bool waitUntilValidatedByNetwork(uint32_t sequence, std::optional< uint32_t > maxWaitMs={})=0
Waits for the sequence to be validated by the network.
virtual std::optional< uint32_t > getMostRecent()=0
Get most recently validated sequence.
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.
This namespace contains everything to do with the ETL and ETL sources.
Definition CacheLoader.hpp:37