rippled
Loading...
Searching...
No Matches
AbstractFetchPackContainer.h
1#pragma once
2
3#include <xrpl/basics/Blob.h>
4#include <xrpl/basics/base_uint.h>
5
6#include <optional>
7
8namespace xrpl {
9
14{
15public:
16 virtual ~AbstractFetchPackContainer() = default;
17
25 getFetchPack(uint256 const& nodeHash) = 0;
26};
27
28} // namespace xrpl
An interface facilitating retrieval of fetch packs without an application or ledgermaster object.
virtual ~AbstractFetchPackContainer()=default
virtual std::optional< Blob > getFetchPack(uint256 const &nodeHash)=0
Retrieves partial ledger data of the corresponding hash from peers.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:5