Equity
Bitcoin Protocol Library
Public Member Functions | Public Attributes | List of all members
Equity::Block::Header Struct Reference

A standard block header. More...

#include <Block.h>

Inheritance diagram for Equity::Block::Header:
P2p::Serializable

Public Member Functions

 Header (uint8_t const *&in, size_t &size)
 
Overrides Serializable
virtual void serialize (std::vector< uint8_t > &out) const override
 
virtual json toJson () const override
 

Public Attributes

int32_t version
 Block version information, based upon the software version creating this block.
 
Crypto::Sha256Hash previousBlock
 The hash value of the previous block this particular block references.
 
Crypto::Sha256Hash merkleRoot
 The reference to a Merkle tree collection which is a hash of all transactions < related to this block.
 
uint32_t timestamp
 A timestamp recording when this block was created.
 
uint32_t target
 The calculated difficulty target being used for this block.
 
uint32_t nonce
 The nonce used to generate this block.
 

Detailed Description

A standard block header.

Note
The timestamp overflows in 2106
Bug:
In some cases, the version value is signed and in others it is unsigned

Constructor & Destructor Documentation

Block::Header::Header ( uint8_t const *&  in,
size_t &  size 
)
Parameters
[in,out]inpointer to the next byte to deserialize
[in,out]sizenumber of bytes remaining in the serialized stream

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