rippled
Loading...
Searching...
No Matches
ConsensusTransSetSF.h
1#pragma once
2
3#include <xrpld/app/main/Application.h>
4
5#include <xrpl/basics/TaggedCache.h>
6#include <xrpl/shamap/SHAMapSyncFilter.h>
7
8namespace xrpl {
9
10// Sync filters allow low-level SHAMapSync code to interact correctly with
11// higher-level structures such as caches and transaction stores
12
13// This class is needed on both add and check functions
14// sync filter for transaction sets during consensus building
16{
17public:
19
21
22 // Note that the nodeData is overwritten by this call
23 void
24 gotNode(bool fromFilter, SHAMapHash const& nodeHash, std::uint32_t ledgerSeq, Blob&& nodeData, SHAMapNodeType type)
25 const override;
26
28 getNode(SHAMapHash const& nodeHash) const override;
29
30private:
34};
35
36} // namespace xrpl
A generic endpoint for log messages.
Definition Journal.h:40
std::optional< Blob > getNode(SHAMapHash const &nodeHash) const override
void gotNode(bool fromFilter, SHAMapHash const &nodeHash, std::uint32_t ledgerSeq, Blob &&nodeData, SHAMapNodeType type) const override
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5