![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
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. More...
#include <core.h>
Public Member Functions | |
CBlockHeader () | |
IMPLEMENT_SERIALIZE (READWRITE(this->nVersion);nVersion=this->nVersion;READWRITE(hashPrevBlock);READWRITE(hashMerkleRoot);READWRITE(nTime);READWRITE(nBits);READWRITE(nNonce);) void SetNull() | |
bool | IsNull () const |
uint256 | GetHash () const |
uint256 | GetPoWHash () const |
int64_t | GetBlockTime () const |
Public Attributes | |
int | nVersion |
uint256 | hashPrevBlock |
uint256 | hashMerkleRoot |
unsigned int | nTime |
unsigned int | nBits |
unsigned int | nNonce |
Static Public Attributes | |
static const int | CURRENT_VERSION =2 |
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 |
uint256 CBlockHeader::GetHash | ( | ) | const |
uint256 CBlockHeader::GetPoWHash | ( | ) | const |