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

Custom serializer for CBlockHeader that omits the nonce and solution, for use as input to Equihash. More...

#include <block.h>

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

Public Member Functions

 CEquihashInput (const CBlockHeader &header)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 

Public Attributes

 ADD_SERIALIZE_METHODS
 

Additional Inherited Members

- Private 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
 
- Private 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
 
- Static Private 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

Custom serializer for CBlockHeader that omits the nonce and solution, for use as input to Equihash.

Definition at line 215 of file block.h.

Constructor & Destructor Documentation

CEquihashInput::CEquihashInput ( const CBlockHeader header)
inline

Definition at line 218 of file block.h.

Here is the call graph for this function:

Member Function Documentation

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

Definition at line 228 of file block.h.

Here is the call graph for this function:

Member Data Documentation

CEquihashInput::ADD_SERIALIZE_METHODS

Definition at line 224 of file block.h.


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