Ethereum  PoC-8
The C++ Implementation of Ethereum
dev::eth::LastBlockHashesFace Class Referenceabstract

Interface for getting a list of recent block hashes @threadsafe. More...

#include <LastBlockHashesFace.h>

Public Member Functions

virtual ~LastBlockHashesFace ()
 
virtual h256s precedingHashes (h256 const &_mostRecentHash) const =0
 
virtual void clear ()=0
 Clear any cached result. More...
 

Detailed Description

Interface for getting a list of recent block hashes @threadsafe.

Definition at line 36 of file LastBlockHashesFace.h.

Constructor & Destructor Documentation

◆ ~LastBlockHashesFace()

virtual dev::eth::LastBlockHashesFace::~LastBlockHashesFace ( )
inlinevirtual

Definition at line 39 of file LastBlockHashesFace.h.

Member Function Documentation

◆ clear()

virtual void dev::eth::LastBlockHashesFace::clear ( )
pure virtual

Clear any cached result.

◆ precedingHashes()

virtual h256s dev::eth::LastBlockHashesFace::precedingHashes ( h256 const &  _mostRecentHash) const
pure virtual

Get hashes of 256 consecutive blocks preceding and including _mostRecentHash Hashes are returned in the order of descending height, i.e. result[0] is _mostRecentHash, result[1] is its parent, result[2] is grandparent etc.


The documentation for this class was generated from the following file: