rippled
Public Member Functions | List of all members
ripple::AbstractFetchPackContainer Class Referenceabstract

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

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

Public Member Functions

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

Detailed Description

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

Definition at line 32 of file AbstractFetchPackContainer.h.

Constructor & Destructor Documentation

◆ ~AbstractFetchPackContainer()

virtual ripple::AbstractFetchPackContainer::~AbstractFetchPackContainer ( )
virtualdefault

Member Function Documentation

◆ getFetchPack()

virtual boost::optional<Blob> ripple::AbstractFetchPackContainer::getFetchPack ( uint256 const &  nodeHash)
pure virtual

Retrieves partial ledger data of the coresponding hash from peers.

`

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

Implemented in ripple::LedgerMaster.