Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

#include <blockencodings.h>

+ Collaboration diagram for CBlockHeaderAndShortTxIDs:

Public Member Functions

 CBlockHeaderAndShortTxIDs ()
 
 CBlockHeaderAndShortTxIDs (const CBlock &block)
 
uint64_t GetShortID (const uint256 &txhash) const
 
size_t BlockTxCount () const
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action)
 

Public Attributes

CBlockHeader header
 
 ADD_SERIALIZE_METHODS
 

Protected Attributes

std::vector< uint64_t > shorttxids
 
std::vector< PrefilledTransactionprefilledtxn
 

Private Member Functions

void FillShortTxIDSelector () const
 

Private Attributes

uint64_t shorttxidk0
 
uint64_t shorttxidk1
 
uint64_t nonce
 

Static Private Attributes

static const int SHORTTXIDS_LENGTH = 6
 

Friends

class PartiallyDownloadedBlock
 

Detailed Description

Definition at line 131 of file blockencodings.h.

Constructor & Destructor Documentation

◆ CBlockHeaderAndShortTxIDs() [1/2]

CBlockHeaderAndShortTxIDs::CBlockHeaderAndShortTxIDs ( )
inline

Definition at line 149 of file blockencodings.h.

◆ CBlockHeaderAndShortTxIDs() [2/2]

CBlockHeaderAndShortTxIDs::CBlockHeaderAndShortTxIDs ( const CBlock block)

Member Function Documentation

◆ BlockTxCount()

size_t CBlockHeaderAndShortTxIDs::BlockTxCount ( ) const
inline

Definition at line 155 of file blockencodings.h.

References prefilledtxn, and shorttxids.

Referenced by PartiallyDownloadedBlock::InitData().

◆ FillShortTxIDSelector()

◆ GetShortID()

uint64_t CBlockHeaderAndShortTxIDs::GetShortID ( const uint256 txhash) const

◆ SerializationOp()

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

Friends And Related Function Documentation

◆ PartiallyDownloadedBlock

friend class PartiallyDownloadedBlock
friend

Definition at line 138 of file blockencodings.h.

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CBlockHeaderAndShortTxIDs::ADD_SERIALIZE_METHODS

Definition at line 157 of file blockencodings.h.

◆ header

CBlockHeader CBlockHeaderAndShortTxIDs::header

◆ nonce

uint64_t CBlockHeaderAndShortTxIDs::nonce
private

Definition at line 134 of file blockencodings.h.

Referenced by FillShortTxIDSelector(), and SerializationOp().

◆ prefilledtxn

std::vector<PrefilledTransaction> CBlockHeaderAndShortTxIDs::prefilledtxn
protected

◆ shorttxidk0

uint64_t CBlockHeaderAndShortTxIDs::shorttxidk0
mutableprivate

Definition at line 133 of file blockencodings.h.

Referenced by FillShortTxIDSelector(), and GetShortID().

◆ shorttxidk1

uint64_t CBlockHeaderAndShortTxIDs::shorttxidk1
mutableprivate

Definition at line 133 of file blockencodings.h.

Referenced by FillShortTxIDSelector(), and GetShortID().

◆ shorttxids

std::vector<uint64_t> CBlockHeaderAndShortTxIDs::shorttxids
protected

◆ SHORTTXIDS_LENGTH

const int CBlockHeaderAndShortTxIDs::SHORTTXIDS_LENGTH = 6
staticprivate

Definition at line 140 of file blockencodings.h.

Referenced by GetShortID(), and SerializationOp().


The documentation for this class was generated from the following files:
Released under the MIT license