Bitcoin
|
#include <block.h>
Public Member Functions | |
CBlockHeader () | |
template<typename Stream , typename Operation > | |
void | SerializationOp (Stream &s, Operation ser_action) |
void | SetNull () |
bool | IsNull () const |
uint256 | GetHash () const |
int64_t | GetBlockTime () const |
Public Attributes | |
int32_t | nVersion |
uint256 | hashPrevBlock |
uint256 | hashMerkleRoot |
uint32_t | nTime |
uint32_t | nBits |
uint32_t | nNonce |
ADD_SERIALIZE_METHODS | |
Nodes collect new transactions into a block, hash them into a hash tree, and scan through nonce values to make the block's hash satisfy proof-of-work requirements. When they solve the proof-of-work, they broadcast the block to everyone and the block is added to the block chain. The first transaction in the block is a special one that creates a new coin owned by the creator of the block.
|
inline |
|
inline |
uint256 CBlockHeader::GetHash | ( | ) | const |
|
inline |
|
inline |
|
inline |
CBlockHeader::ADD_SERIALIZE_METHODS |
uint256 CBlockHeader::hashMerkleRoot |
uint256 CBlockHeader::hashPrevBlock |
uint32_t CBlockHeader::nBits |
uint32_t CBlockHeader::nNonce |
uint32_t CBlockHeader::nTime |
int32_t CBlockHeader::nVersion |