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