20 #ifndef RIPPLE_APP_LEDGER_LEDGERCLEANER_H_INCLUDED
21 #define RIPPLE_APP_LEDGER_LEDGERCLEANER_H_INCLUDED
23 #include <ripple/app/main/Application.h>
24 #include <ripple/json/json_value.h>
25 #include <ripple/core/Stoppable.h>
26 #include <ripple/beast/utility/PropertyStream.h>
27 #include <ripple/beast/utility/Journal.h>
virtual void doClean(Json::Value const ¶meters)=0
Start a long running task to clean the ledger.
LedgerCleaner(Stoppable &parent)
Subclasses can be called to write to a stream and have children.
Provides an interface for starting and stopping.
std::unique_ptr< LedgerCleaner > make_LedgerCleaner(Application &app, Stoppable &parent, beast::Journal journal)
Check the ledger/transaction databases to make sure they have continuity.
A generic endpoint for log messages.
virtual ~LedgerCleaner()=0
Destroy the object.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.