Fabcoin Core  0.16.2
P2P Digital Currency
Public Member Functions | Public Attributes | List of all members
CBlock Class Reference

#include <block.h>

Inheritance diagram for CBlock:
[legend]
Collaboration diagram for CBlock:
[legend]

Public Member Functions

 CBlock ()
 
 CBlock (const CBlockHeader &header)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 
void SetNull ()
 
CBlockHeader GetBlockHeader () const
 
std::string ToString () const
 
- Public Member Functions inherited from CBlockHeader
 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 &params) const
 
uint256 GetHashWithoutSign () const
 
int64_t GetBlockTime () const
 
CBlockHeaderoperator= (const CBlockHeader &other)
 
std::string ToString () const
 

Public Attributes

std::vector< CTransactionRefvtx
 
bool fChecked
 
 ADD_SERIALIZE_METHODS
 
- Public Attributes inherited from CBlockHeader
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
 

Additional Inherited Members

- Static Public Attributes inherited from CBlockHeader
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
 

Detailed Description

Definition at line 155 of file block.h.

Constructor & Destructor Documentation

CBlock::CBlock ( )
inline

Definition at line 164 of file block.h.

CBlock::CBlock ( const CBlockHeader header)
inline

Definition at line 169 of file block.h.

Member Function Documentation

CBlockHeader CBlock::GetBlockHeader ( ) const
inline

Definition at line 190 of file block.h.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename Stream , typename Operation >
void CBlock::SerializationOp ( Stream &  s,
Operation  ser_action 
)
inline

Definition at line 178 of file block.h.

void CBlock::SetNull ( )
inline

Definition at line 183 of file block.h.

Here is the call graph for this function:

std::string CBlock::ToString ( ) const

Definition at line 66 of file block.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

CBlock::ADD_SERIALIZE_METHODS

Definition at line 175 of file block.h.

bool CBlock::fChecked
mutable

Definition at line 162 of file block.h.

std::vector<CTransactionRef> CBlock::vtx

Definition at line 159 of file block.h.


The documentation for this class was generated from the following files: