![]() |
Master Core
v0.0.9 - 2abfd2849db8ba7a83957c64eb976b406713c123
|
#include <core.h>
Inheritance diagram for CBlock:
Collaboration diagram for CBlock: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 |
Public Member Functions inherited from CBlockHeader | |
| 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 |
| 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 |
Public Attributes inherited from CBlockHeader | |
| int | nVersion |
| uint256 | hashPrevBlock |
| uint256 | hashMerkleRoot |
| unsigned int | nTime |
| unsigned int | nBits |
| unsigned int | nNonce |
Additional Inherited Members | |
Static Public Attributes inherited from CBlockHeader | |
| static const int | CURRENT_VERSION =2 |
|
inline |
| uint256 CBlock::BuildMerkleTree | ( | ) | const |
Definition at line 220 of file core.cpp.
References BEGIN, END, CTransaction::GetHash(), Hash(), vMerkleTree, and vtx.
Referenced by AppInit2(), CheckBlock(), GetMerkleBranch(), IncrementExtraNonce(), and ProcessBlock().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 429 of file core.h.
References CBlockHeader::hashMerkleRoot, CBlockHeader::hashPrevBlock, CBlockHeader::nBits, CBlockHeader::nNonce, CBlockHeader::nTime, and CBlockHeader::nVersion.
Referenced by CMerkleBlock::CMerkleBlock().
Here is the caller graph for this function:Definition at line 239 of file core.cpp.
References BuildMerkleTree(), vMerkleTree, and vtx.
Here is the call graph for this function:Definition at line 443 of file core.h.
Referenced by AddToBlockIndex(), CheckBlock(), and ConnectBlock().
Here is the caller graph for this function:
|
inline |
| void CBlock::print | ( | ) | const |
Definition at line 270 of file core.cpp.
References CBlockHeader::GetHash(), CBlockHeader::hashMerkleRoot, CBlockHeader::hashPrevBlock, LogPrintf, CBlockHeader::nBits, CBlockHeader::nNonce, CBlockHeader::nTime, CBlockHeader::nVersion, base_uint< BITS >::ToString(), vMerkleTree, and vtx.
Referenced by AppInit2().
Here is the call graph for this function:
Here is the caller graph for this function:
|
mutable |
Definition at line 403 of file core.h.
Referenced by BuildMerkleTree(), CheckBlock(), GetMerkleBranch(), and print().
| std::vector<CTransaction> CBlock::vtx |
Definition at line 400 of file core.h.
Referenced by AcceptBlock(), AddToBlockIndex(), blockToJSON(), BuildMerkleTree(), CheckBlock(), CMerkleBlock::CMerkleBlock(), ConnectBlock(), ConnectTip(), CreateNewBlock(), DisconnectBlock(), DisconnectTip(), getblocktemplate(), GetMerkleBranch(), GetTransaction(), IncrementExtraNonce(), listblocktransactions_MP(), msc_initial_scan(), print(), PrintBlockTree(), ProcessGetData(), CWallet::ScanForWalletTransactions(), and VerifyDB().
1.8.8