3#include <xrpl/basics/chrono.h>
4#include <xrpl/nodestore/DummyScheduler.h>
5#include <xrpl/nodestore/Manager.h>
6#include <xrpl/shamap/Family.h>
32 testSection.
set(
"type",
"memory");
33 testSection.
set(
"path",
"SHAMap_test");
77 Throw<std::runtime_error>(
"missing node");
83 Throw<std::runtime_error>(
"missing node");
A generic endpoint for log messages.
Persistency layer for NodeObject.
Simple NodeStore Scheduler that just performs the tasks synchronously.
static Manager & instance()
Returns the instance of the manager singleton.
virtual std::unique_ptr< Database > make_Database(std::size_t burstSize, Scheduler &scheduler, int readThreads, Section const &backendParameters, beast::Journal journal)=0
Construct a NodeStore database.
Holds a collection of configuration values.
void set(std::string const &key, std::string const &value)
Set a key/value pair.
Remembers which tree keys have all descendants resident.
std::shared_ptr< TreeNodeCache > tnCache_
std::unique_ptr< NodeStore::Database > db_
void missingNodeAcquireByHash(uint256 const &refHash, std::uint32_t refNum) override
Acquire ledger that has a missing node by ledger hash.
NodeStore::Database const & db() const override
std::shared_ptr< FullBelowCache > getFullBelowCache() override
Return a pointer to the Family Full Below Cache.
std::shared_ptr< TreeNodeCache > getTreeNodeCache() override
Return a pointer to the Family Tree Node Cache.
TestNodeFamily(beast::Journal j)
beast::manual_clock< std::chrono::steady_clock > clock()
std::shared_ptr< FullBelowCache > fbCache_
NodeStore::DummyScheduler scheduler_
void missingNodeAcquireBySeq(std::uint32_t refNum, uint256 const &nodeHash) override
Acquire ledger that has a missing node by ledger sequence.
beast::Journal const & journal() override
NodeStore::Database & db() override
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
constexpr auto megabytes(T value) noexcept