![]() |
Anoncoin
0.9.4
P2P Digital Currency
|
#include <core.h>
Public Member Functions | |
CBlock () | |
CBlock (const CBlockHeader &header) | |
IMPLEMENT_SERIALIZE (READWRITE(*(CBlockHeader *) this);READWRITE(vtx);) void SetNull() | |
CBlockHeader | GetBlockHeader () const |
uint256 | BuildMerkleTree () const |
const uint256 & | GetTxHash (unsigned int nIndex) const |
std::vector< uint256 > | GetMerkleBranch (int nIndex) const |
void | print () const |
![]() | |
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 |
Static Public Member Functions | |
static uint256 | CheckMerkleBranch (uint256 hash, const std::vector< uint256 > &vMerkleBranch, int nIndex) |
Public Attributes | |
std::vector< CTransaction > | vtx |
std::vector< uint256 > | vMerkleTree |
![]() | |
int | nVersion |
uint256 | hashPrevBlock |
uint256 | hashMerkleRoot |
unsigned int | nTime |
unsigned int | nBits |
unsigned int | nNonce |
Additional Inherited Members | |
![]() | |
static const int | CURRENT_VERSION =2 |
|
inline |
uint256 CBlock::BuildMerkleTree | ( | ) | const |
|
inline |
std::vector< uint256 > CBlock::GetMerkleBranch | ( | int | nIndex | ) | const |
|
inline |
|
inline |
void CBlock::print | ( | ) | const |
std::vector<CTransaction> CBlock::vtx |