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

Binary layout for a block header. More...

Inheritance diagram for catapult::model::BlockHeader:
Collaboration diagram for catapult::model::BlockHeader:

Public Attributes

catapult::Height Height
 Height of a block. More...
 
catapult::Timestamp Timestamp
 Timestamp of a block. More...
 
catapult::Difficulty Difficulty
 Difficulty of a block. More...
 
BlockFeeMultiplier FeeMultiplier
 Fee multiplier applied to transactions contained in block. More...
 
Hash256 PreviousBlockHash
 Hash of the previous block. More...
 
Hash256 BlockTransactionsHash
 Aggregate hash of a block's transactions. More...
 
Hash256 BlockReceiptsHash
 Aggregate hash of a block's receipts. More...
 
Hash256 StateHash
 Hash of the global chain state at this block. More...
 
Key Beneficiary
 Public key of optional beneficiary designated by harvester. More...
 
- Public Attributes inherited from catapult::model::EntityBody< VerifiableEntityHeader >
Key Signer
 Entity signer's public key. More...
 
uint16_t Version
 Entity version. More...
 
EntityType Type
 Entity type. More...
 
- Public Attributes inherited from catapult::model::VerifiableEntityHeader
catapult::Signature Signature
 Entity signature. More...
 
- Public Attributes inherited from catapult::model::SizePrefixedEntity
uint32_t Size
 Entity size. More...
 

Static Public Attributes

static constexpr int Current_Version = 3
 Block format version. More...
 
- Static Public Attributes inherited from catapult::model::VerifiableEntityHeader
static constexpr size_t Header_Size = sizeof(uint32_t) + Signature_Size + Key_Size
 Size of the VerifiableEntity part that can be skipped when signing/verifying. More...
 

Additional Inherited Members

- Public Member Functions inherited from catapult::model::EntityBody< VerifiableEntityHeader >
NetworkIdentifier Network () const
 Returns network of an entity, as defined in NetworkInfoTraits. More...
 
uint8_t EntityVersion () const
 Returns version of an entity. More...
 
- Public Member Functions inherited from catapult::model::SizePrefixedEntity
bool operator== (const SizePrefixedEntity &rhs) const
 Returns true if this entity is equal to rhs. More...
 
bool operator!= (const SizePrefixedEntity &rhs) const
 Returns true if this entity is not equal to rhs. More...
 
- Public Member Functions inherited from catapult::utils::NonCopyable
constexpr NonCopyable ()=default
 Default constructor. More...
 
 ~NonCopyable ()=default
 Default destructor. More...
 
 NonCopyable (const NonCopyable &)=delete
 Disabled copy constructor. More...
 
NonCopyableoperator= (const NonCopyable &)=delete
 Disabled assignment operator. More...
 
- Protected Member Functions inherited from catapult::model::SizePrefixedEntity
const uint8_t * ToBytePointer () const
 Returns byte-based const pointer to this entity. More...
 
uint8_t * ToBytePointer ()
 Returns byte-based pointer to this entity. More...
 
- Static Protected Member Functions inherited from catapult::model::SizePrefixedEntity
template<typename T >
static auto PayloadStart (T &entity)
 Gets the start of the variable data part of entity. More...
 

Detailed Description

Binary layout for a block header.

Member Data Documentation

◆ Beneficiary

Key catapult::model::BlockHeader::Beneficiary

Public key of optional beneficiary designated by harvester.

◆ BlockReceiptsHash

Hash256 catapult::model::BlockHeader::BlockReceiptsHash

Aggregate hash of a block's receipts.

◆ BlockTransactionsHash

Hash256 catapult::model::BlockHeader::BlockTransactionsHash

Aggregate hash of a block's transactions.

◆ Current_Version

constexpr int catapult::model::BlockHeader::Current_Version = 3
staticconstexpr

Block format version.

◆ Difficulty

catapult::Difficulty catapult::model::BlockHeader::Difficulty

Difficulty of a block.

◆ FeeMultiplier

BlockFeeMultiplier catapult::model::BlockHeader::FeeMultiplier

Fee multiplier applied to transactions contained in block.

◆ Height

catapult::Height catapult::model::BlockHeader::Height

Height of a block.

◆ PreviousBlockHash

Hash256 catapult::model::BlockHeader::PreviousBlockHash

Hash of the previous block.

◆ StateHash

Hash256 catapult::model::BlockHeader::StateHash

Hash of the global chain state at this block.

◆ Timestamp

catapult::Timestamp catapult::model::BlockHeader::Timestamp

Timestamp of a block.


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