CatapultServer  v0.5.0.1 (Elephant)
catapult::handlers::HeightRequestInfo< TRequest > Struct Template Reference

Information about a height request. More...

Collaboration diagram for catapult::handlers::HeightRequestInfo< TRequest >:

Public Member Functions

constexpr HeightRequestInfo ()
 Creates a height request info. More...
 
uint32_t numAvailableBlocks () const
 Gets the number of remaining blocks in the chain. More...
 

Public Attributes

Height ChainHeight
 Current chain height. More...
 
Height NormalizedRequestHeight
 
const TRequest * pRequest
 Coerced request. More...
 

Detailed Description

template<typename TRequest>
struct catapult::handlers::HeightRequestInfo< TRequest >

Information about a height request.

Constructor & Destructor Documentation

◆ HeightRequestInfo()

template<typename TRequest>
constexpr catapult::handlers::HeightRequestInfo< TRequest >::HeightRequestInfo ( )
inlineconstexpr

Creates a height request info.

Member Function Documentation

◆ numAvailableBlocks()

template<typename TRequest>
uint32_t catapult::handlers::HeightRequestInfo< TRequest >::numAvailableBlocks ( ) const
inline

Gets the number of remaining blocks in the chain.

Member Data Documentation

◆ ChainHeight

template<typename TRequest>
Height catapult::handlers::HeightRequestInfo< TRequest >::ChainHeight

Current chain height.

◆ NormalizedRequestHeight

template<typename TRequest>
Height catapult::handlers::HeightRequestInfo< TRequest >::NormalizedRequestHeight

Normalized request height.

Note
This is only useful when zero height is allowed.

◆ pRequest

template<typename TRequest>
const TRequest* catapult::handlers::HeightRequestInfo< TRequest >::pRequest

Coerced request.


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