rippled
Loading...
Searching...
No Matches
Public Member Functions | List of all members
xrpl::AbstractFetchPackContainer Class Referenceabstract

An interface facilitating retrieval of fetch packs without an application or ledgermaster object. More...

#include <AbstractFetchPackContainer.h>

Inheritance diagram for xrpl::AbstractFetchPackContainer:
Inheritance graph
[legend]

Public Member Functions

virtual ~AbstractFetchPackContainer ()=default
 
virtual std::optional< BlobgetFetchPack (uint256 const &nodeHash)=0
 Retrieves partial ledger data of the corresponding hash from peers.
 

Detailed Description

An interface facilitating retrieval of fetch packs without an application or ledgermaster object.

Definition at line 14 of file AbstractFetchPackContainer.h.

Constructor & Destructor Documentation

◆ ~AbstractFetchPackContainer()

virtual xrpl::AbstractFetchPackContainer::~AbstractFetchPackContainer ( )
virtualdefault

Member Function Documentation

◆ getFetchPack()

virtual std::optional< Blob > xrpl::AbstractFetchPackContainer::getFetchPack ( uint256 const &  nodeHash)
pure virtual

Retrieves partial ledger data of the corresponding hash from peers.

`

Parameters
nodeHashThe 256-bit hash of the data to fetch.
Returns
std::nullopt if the hash isn't cached, otherwise, the hash associated data.

Implemented in xrpl::LedgerMaster.