|
xrpld
|
A sync filter that serves a range of a DeepChain's nodes, by hash. More...


Public Member Functions | |
| ChainFilter (DeepChain const &chain, unsigned int maxDepth=SHAMap::kLeafDepth, unsigned int minDepth=0) | |
| void | gotNode (bool, SHAMapHash const &, std::uint32_t, Blob &&, SHAMapNodeType) const override |
| std::optional< Blob > | getNode (SHAMapHash const &hash) const override |
Private Attributes | |
| std::map< SHAMapHash, Blob > | nodes_ |
A sync filter that serves a range of a DeepChain's nodes, by hash.
Stands in for a fetch pack, which is checked against each node's own hash alone, so a walk resolves nodes locally through the filter rather than through addKnownNode(). Anything outside the range, including a decoy child, looks unavailable.
Definition at line 216 of file tests/libxrpl/shamap/SHAMapSync.cpp.
|
explicit |
| chain | The chain whose nodes to serve. |
| maxDepth | The deepest node to serve. |
| minDepth | The shallowest node to serve. |
Definition at line 224 of file tests/libxrpl/shamap/SHAMapSync.cpp.
|
overridevirtual |
Implements xrpl::SHAMapSyncFilter.
Definition at line 234 of file tests/libxrpl/shamap/SHAMapSync.cpp.
|
nodiscardoverridevirtual |
Implements xrpl::SHAMapSyncFilter.
Definition at line 244 of file tests/libxrpl/shamap/SHAMapSync.cpp.
|
private |
Definition at line 252 of file tests/libxrpl/shamap/SHAMapSync.cpp.