1#ifndef XRPL_APP_LEDGER_LEDGERCLEANER_H_INCLUDED
2#define XRPL_APP_LEDGER_LEDGERCLEANER_H_INCLUDED
4#include <xrpld/app/main/Application.h>
6#include <xrpl/beast/utility/Journal.h>
7#include <xrpl/beast/utility/PropertyStream.h>
8#include <xrpl/json/json_value.h>
A generic endpoint for log messages.
Subclasses can be called to write to a stream and have children.
Source(std::string const &name)
Check the ledger/transaction databases to make sure they have continuity.
virtual ~LedgerCleaner()=default
virtual void clean(Json::Value const ¶meters)=0
Start a long running task to clean the ledger.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::unique_ptr< LedgerCleaner > make_LedgerCleaner(Application &app, beast::Journal journal)