Bitcoin ABC 0.26.3
P2P Digital Currency
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
CBlockHeaderAndShortTxIDs Class Reference

#include <blockencodings.h>

Collaboration diagram for CBlockHeaderAndShortTxIDs:
[legend]

Public Member Functions

 CBlockHeaderAndShortTxIDs ()
 
 CBlockHeaderAndShortTxIDs (const CBlock &block)
 
uint64_t GetShortID (const TxHash &txhash) const
 
size_t BlockTxCount () const
 
 SERIALIZE_METHODS (CBlockHeaderAndShortTxIDs, obj)
 

Public Attributes

CBlockHeader header
 

Static Public Attributes

static constexpr int SHORTTXIDS_LENGTH = 6
 

Protected Attributes

std::vector< uint64_tshorttxids
 
std::vector< PrefilledTransactionprefilledtxn
 

Private Member Functions

void FillShortTxIDSelector () const
 

Private Attributes

uint64_t shorttxidk0
 
uint64_t shorttxidk1
 
uint64_t nonce
 

Friends

class PartiallyDownloadedBlock
 

Detailed Description

Definition at line 80 of file blockencodings.h.

Constructor & Destructor Documentation

◆ CBlockHeaderAndShortTxIDs() [1/2]

CBlockHeaderAndShortTxIDs::CBlockHeaderAndShortTxIDs ( )
inline

Definition at line 99 of file blockencodings.h.

◆ CBlockHeaderAndShortTxIDs() [2/2]

CBlockHeaderAndShortTxIDs::CBlockHeaderAndShortTxIDs ( const CBlock block)
explicit

Definition at line 21 of file blockencodings.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ BlockTxCount()

size_t CBlockHeaderAndShortTxIDs::BlockTxCount ( ) const
inline

Definition at line 105 of file blockencodings.h.

◆ FillShortTxIDSelector()

void CBlockHeaderAndShortTxIDs::FillShortTxIDSelector ( ) const
private

Definition at line 34 of file blockencodings.cpp.

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

◆ GetShortID()

uint64_t CBlockHeaderAndShortTxIDs::GetShortID ( const TxHash txhash) const

Definition at line 45 of file blockencodings.cpp.

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

◆ SERIALIZE_METHODS()

CBlockHeaderAndShortTxIDs::SERIALIZE_METHODS ( CBlockHeaderAndShortTxIDs  ,
obj   
)
inline

Definition at line 109 of file blockencodings.h.

Here is the call graph for this function:

Friends And Related Symbol Documentation

◆ PartiallyDownloadedBlock

Definition at line 87 of file blockencodings.h.

Member Data Documentation

◆ header

CBlockHeader CBlockHeaderAndShortTxIDs::header

Definition at line 96 of file blockencodings.h.

◆ nonce

uint64_t CBlockHeaderAndShortTxIDs::nonce
private

Definition at line 83 of file blockencodings.h.

◆ prefilledtxn

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

Definition at line 91 of file blockencodings.h.

◆ shorttxidk0

uint64_t CBlockHeaderAndShortTxIDs::shorttxidk0
mutableprivate

Definition at line 82 of file blockencodings.h.

◆ shorttxidk1

uint64_t CBlockHeaderAndShortTxIDs::shorttxidk1
private

Definition at line 82 of file blockencodings.h.

◆ shorttxids

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

Definition at line 90 of file blockencodings.h.

◆ SHORTTXIDS_LENGTH

constexpr int CBlockHeaderAndShortTxIDs::SHORTTXIDS_LENGTH = 6
staticconstexpr

Definition at line 94 of file blockencodings.h.


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