rippled
Loading...
Searching...
No Matches
AbstractFetchPackContainer.h
1#ifndef XRPL_APP_LEDGER_ABSTRACTFETCHPACKCONTAINER_H_INCLUDED
2#define XRPL_APP_LEDGER_ABSTRACTFETCHPACKCONTAINER_H_INCLUDED
3
4#include <xrpl/basics/Blob.h>
5#include <xrpl/basics/base_uint.h>
6
7#include <optional>
8
9namespace ripple {
10
15{
16public:
17 virtual ~AbstractFetchPackContainer() = default;
18
26 getFetchPack(uint256 const& nodeHash) = 0;
27};
28
29} // namespace ripple
30
31#endif
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 coresponding hash from peers.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
Definition algorithm.h:6