3#include <xrpld/app/main/Application.h>
5#include <xrpl/ledger/Ledger.h>
6#include <xrpl/nodestore/Manager.h>
47 [[nodiscard]]
virtual bool
61 [[nodiscard]]
virtual int
A generic endpoint for log messages.
Scheduling for asynchronous backend activity.
class to create database, launch online delete thread, and related SQLite database
virtual LedgerIndex getCanDelete()=0
Highest ledger that may be deleted.
virtual std::uint32_t clampFetchDepth(std::uint32_t fetchDepth) const =0
virtual ~SHAMapStore()=default
virtual std::unique_ptr< NodeStore::Database > makeNodeStore(int readThreads)=0
virtual std::optional< LedgerIndex > minimumOnline() const =0
The minimum ledger to try and maintain in our database.
virtual bool advisoryDelete() const =0
Whether advisory delete is enabled.
virtual LedgerIndex getLastRotated()=0
Maximum ledger that has been deleted, or will be deleted if currently in the act of online deletion.
virtual LedgerIndex setCanDelete(LedgerIndex canDelete)=0
Highest ledger that may be deleted.
virtual void onLedgerClosed(std::shared_ptr< Ledger const > const &ledger)=0
Called by LedgerMaster every time a ledger validates.
virtual void rendezvous() const =0
virtual int fdRequired() const =0
Returns the number of file descriptors that are needed.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::uint32_t LedgerIndex
A ledger index.
std::unique_ptr< SHAMapStore > makeSHAMapStore(Application &app, NodeStore::Scheduler &scheduler, beast::Journal journal)