![]() |
Fabcoin Core
0.16.2
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 <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 |
| uint256 | GetHash (const Consensus::Params ¶ms) const |
| uint256 | GetHashWithoutSign () const |
| int64_t | GetBlockTime () const |
| CBlockHeader & | operator= (const CBlockHeader &other) |
| std::string | ToString () const |
Public Attributes | |
| int32_t | nVersion |
| uint256 | hashPrevBlock |
| uint256 | hashMerkleRoot |
| uint32_t | nHeight |
| uint32_t | nReserved [7] |
| uint32_t | nTime |
| uint32_t | nBits |
| uint256 | hashStateRoot |
| uint256 | hashUTXORoot |
| uint256 | nNonce |
| std::vector< unsigned char > | nSolution |
| ADD_SERIALIZE_METHODS | |
Static Public Attributes | |
| static const size_t | HEADER_SIZE = 4+32+32+4+28+4+4+32 |
| static const size_t | HEADER_NEWSIZE = 4+32+32+4+28+4+4+32+32+32 |
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::GetHash | ( | const Consensus::Params & | params | ) | const |
| uint256 CBlockHeader::GetHashWithoutSign | ( | ) | const |
|
inline |
|
inline |
|
inline |
|
inline |
| std::string CBlockHeader::ToString | ( | ) | const |
|
static |
|
static |
1.8.11