Raven Core  3.0.0
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
 
int64_t GetBlockTime () 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 nTime
 
uint32_t nBits
 
uint32_t nNonce
 
 ADD_SERIALIZE_METHODS
 

Detailed Description

Definition at line 73 of file block.h.

Constructor & Destructor Documentation

◆ CBlock() [1/2]

CBlock::CBlock ( )
inline

Definition at line 82 of file block.h.

Here is the call graph for this function:

◆ CBlock() [2/2]

CBlock::CBlock ( const CBlockHeader header)
inline

Definition at line 87 of file block.h.

Here is the call graph for this function:

Member Function Documentation

◆ GetBlockHeader()

CBlockHeader CBlock::GetBlockHeader ( ) const
inline

Definition at line 108 of file block.h.

Here is the caller graph for this function:

◆ SerializationOp()

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

Definition at line 96 of file block.h.

◆ SetNull()

void CBlock::SetNull ( )
inline

Definition at line 101 of file block.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToString()

std::string CBlock::ToString ( ) const

Definition at line 19 of file block.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CBlock::ADD_SERIALIZE_METHODS

Definition at line 93 of file block.h.

◆ fChecked

bool CBlock::fChecked
mutable

Definition at line 80 of file block.h.

◆ vtx

std::vector<CTransactionRef> CBlock::vtx

Definition at line 77 of file block.h.


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