rippled
Loading...
Searching...
No Matches
SHAMapSyncFilter.h
1#ifndef XRPL_SHAMAP_SHAMAPSYNCFILTER_H_INCLUDED
2#define XRPL_SHAMAP_SHAMAPSYNCFILTER_H_INCLUDED
3
4#include <xrpl/shamap/SHAMapTreeNode.h>
5
6#include <optional>
7
9namespace ripple {
10
12{
13public:
14 virtual ~SHAMapSyncFilter() = default;
15 SHAMapSyncFilter() = default;
18 operator=(SHAMapSyncFilter const&) = delete;
19
20 // Note that the nodeData is overwritten by this call
21 virtual void
23 bool fromFilter,
24 SHAMapHash const& nodeHash,
25 std::uint32_t ledgerSeq,
26 Blob&& nodeData,
27 SHAMapNodeType type) const = 0;
28
30 getNode(SHAMapHash const& nodeHash) const = 0;
31};
32
33} // namespace ripple
34
35#endif
virtual void gotNode(bool fromFilter, SHAMapHash const &nodeHash, std::uint32_t ledgerSeq, Blob &&nodeData, SHAMapNodeType type) const =0
virtual ~SHAMapSyncFilter()=default
SHAMapSyncFilter & operator=(SHAMapSyncFilter const &)=delete
virtual std::optional< Blob > getNode(SHAMapHash const &nodeHash) const =0
SHAMapSyncFilter(SHAMapSyncFilter const &)=delete
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6