CatapultServer  v0.5.0.1 (Elephant)
catapult::model::PreviousBlockContext Struct Reference

Context passed when creating new block. More...

Collaboration diagram for catapult::model::PreviousBlockContext:

Public Member Functions

 PreviousBlockContext ()
 Creates an empty context. More...
 
 PreviousBlockContext (const BlockElement &blockElement)
 Creates a context with blockElement as the previous block. More...
 

Public Attributes

Hash256 BlockHash
 Hash of previous block. More...
 
catapult::GenerationHash GenerationHash
 Generation hash of previous block. More...
 
Height BlockHeight
 Height of previous block. More...
 
catapult::Timestamp Timestamp
 Timestamp of previous block. More...
 

Detailed Description

Context passed when creating new block.

Constructor & Destructor Documentation

◆ PreviousBlockContext() [1/2]

catapult::model::PreviousBlockContext::PreviousBlockContext ( )
inline

Creates an empty context.

◆ PreviousBlockContext() [2/2]

catapult::model::PreviousBlockContext::PreviousBlockContext ( const BlockElement blockElement)
inlineexplicit

Creates a context with blockElement as the previous block.

Member Data Documentation

◆ BlockHash

Hash256 catapult::model::PreviousBlockContext::BlockHash

Hash of previous block.

◆ BlockHeight

Height catapult::model::PreviousBlockContext::BlockHeight

Height of previous block.

◆ GenerationHash

catapult::GenerationHash catapult::model::PreviousBlockContext::GenerationHash

Generation hash of previous block.

◆ Timestamp

catapult::Timestamp catapult::model::PreviousBlockContext::Timestamp

Timestamp of previous block.


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