Clio develop
The XRP Ledger API server.
Loading...
Searching...
No Matches
etlng::impl::AmendmentBlockHandler Class Reference
Inheritance diagram for etlng::impl::AmendmentBlockHandler:
Collaboration diagram for etlng::impl::AmendmentBlockHandler:

Public Types

using ActionType = std::function<void()>
 

Public Member Functions

 AmendmentBlockHandler (util::async::AnyExecutionContext &&ctx, etl::SystemState &state, std::chrono::steady_clock::duration interval=std::chrono::seconds{1}, ActionType action=kDEFAULT_AMENDMENT_BLOCK_ACTION)
 
void notifyAmendmentBlocked () override
 The function to call once an amendment block has been discovered.
 
- Public Member Functions inherited from etlng::AmendmentBlockHandlerInterface

Static Public Attributes

static ActionType const kDEFAULT_AMENDMENT_BLOCK_ACTION
 

Member Function Documentation

◆ notifyAmendmentBlocked()

void etlng::impl::AmendmentBlockHandler::notifyAmendmentBlocked ( )
overridevirtual

The function to call once an amendment block has been discovered.

Implements etlng::AmendmentBlockHandlerInterface.

Member Data Documentation

◆ kDEFAULT_AMENDMENT_BLOCK_ACTION

AmendmentBlockHandler::ActionType const etlng::impl::AmendmentBlockHandler::kDEFAULT_AMENDMENT_BLOCK_ACTION
static
Initial value:
= []() {
static util::Logger const log{"ETL"};
LOG(log.fatal()) << "Can't process new ledgers: The current ETL source is not compatible with the version of "
<< "the libxrpl Clio is currently using. Please upgrade Clio to a newer version.";
}
A simple thread-safe logger for the channel specified in the constructor.
Definition Logger.hpp:110

The documentation for this class was generated from the following files: