20 #include <ripple/app/ledger/LedgerMaster.h>
21 #include <ripple/app/main/Application.h>
22 #include <ripple/app/main/Tuning.h>
23 #include <ripple/shamap/NodeFamily.h>
29 , db_(app.getNodeStore())
30 , j_(app.journal(
"NodeFamily"))
32 "Node family full below cache",
34 app.journal(
"NodeFamilyFulLBelowCache"),
39 "Node family tree node cache",
70 JLOG(
j_.
error()) <<
"Missing node in " << seq;
Remembers which tree keys have all descendants resident.
Provides the beast::insight::Collector service.
Stopwatch & stopwatch()
Returns an instance of a wall clock.
constexpr std::chrono::seconds fullBelowExpiration
virtual InboundLedgers & getInboundLedgers()=0
virtual LedgerMaster & getLedgerMaster()=0
virtual std::shared_ptr< Ledger const > acquire(uint256 const &hash, std::uint32_t seq, InboundLedger::Reason)=0
void acquire(uint256 const &hash, std::uint32_t seq)
void missingNode(std::uint32_t seq) override
constexpr std::size_t fullBelowTargetSize
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
std::shared_ptr< TreeNodeCache > tnCache_
std::string to_string(Manifest const &m)
Format the specified manifest to a string for debugging purposes.
std::shared_ptr< FullBelowCache > fbCache_
uint256 getHashBySeq(std::uint32_t index)
Get a ledger's hash by sequence number using the cache.