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

Processing element for a block composed of a block and metadata. More...

Collaboration diagram for catapult::model::BlockElement:

Public Member Functions

 BlockElement (const model::Block &block)
 Creates a block element around block. More...
 

Public Attributes

const model::BlockBlock
 Block entity. More...
 
Hash256 EntityHash
 Entity hash. More...
 
catapult::GenerationHash GenerationHash
 Generation hash of the block. More...
 
std::vector< Hash256SubCacheMerkleRoots
 Merkle roots for all sub caches at the current block. More...
 
std::vector< TransactionElementTransactions
 Transaction elements. More...
 
std::shared_ptr< const BlockStatementOptionalStatement
 

Detailed Description

Processing element for a block composed of a block and metadata.

Constructor & Destructor Documentation

◆ BlockElement()

catapult::model::BlockElement::BlockElement ( const model::Block block)
inlineexplicit

Creates a block element around block.

Member Data Documentation

◆ Block

const model::Block& catapult::model::BlockElement::Block

Block entity.

◆ EntityHash

Hash256 catapult::model::BlockElement::EntityHash

Entity hash.

◆ GenerationHash

catapult::GenerationHash catapult::model::BlockElement::GenerationHash

Generation hash of the block.

◆ OptionalStatement

std::shared_ptr<const BlockStatement> catapult::model::BlockElement::OptionalStatement

Optional block statement.

Note
shared_ptr for optionality and copyability (BlockStatement is move only).

◆ SubCacheMerkleRoots

std::vector<Hash256> catapult::model::BlockElement::SubCacheMerkleRoots

Merkle roots for all sub caches at the current block.

◆ Transactions

std::vector<TransactionElement> catapult::model::BlockElement::Transactions

Transaction elements.


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