Bitcoin Core  0.21.1
P2P Digital Currency
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
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, bool fUseWTXID)
 
uint64_t GetShortID (const uint256 &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_t > shorttxids
 
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 86 of file blockencodings.h.

Constructor & Destructor Documentation

CBlockHeaderAndShortTxIDs::CBlockHeaderAndShortTxIDs ( )
inline

Definition at line 105 of file blockencodings.h.

CBlockHeaderAndShortTxIDs::CBlockHeaderAndShortTxIDs ( const CBlock block,
bool  fUseWTXID 
)

Definition at line 19 of file blockencodings.cpp.

Here is the call graph for this function:

Member Function Documentation

size_t CBlockHeaderAndShortTxIDs::BlockTxCount ( ) const
inline

Definition at line 111 of file blockencodings.h.

Here is the caller graph for this function:

void CBlockHeaderAndShortTxIDs::FillShortTxIDSelector ( ) const
private

Definition at line 31 of file blockencodings.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

uint64_t CBlockHeaderAndShortTxIDs::GetShortID ( const uint256 txhash) const

Definition at line 42 of file blockencodings.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

CBlockHeaderAndShortTxIDs::SERIALIZE_METHODS ( CBlockHeaderAndShortTxIDs  ,
obj   
)
inline

Definition at line 113 of file blockencodings.h.

Here is the call graph for this function:

Friends And Related Function Documentation

friend class PartiallyDownloadedBlock
friend

Definition at line 93 of file blockencodings.h.

Member Data Documentation

CBlockHeader CBlockHeaderAndShortTxIDs::header

Definition at line 102 of file blockencodings.h.

uint64_t CBlockHeaderAndShortTxIDs::nonce
private

Definition at line 89 of file blockencodings.h.

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

Definition at line 97 of file blockencodings.h.

uint64_t CBlockHeaderAndShortTxIDs::shorttxidk0
mutableprivate

Definition at line 88 of file blockencodings.h.

uint64_t CBlockHeaderAndShortTxIDs::shorttxidk1
mutableprivate

Definition at line 88 of file blockencodings.h.

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

Definition at line 96 of file blockencodings.h.

constexpr int CBlockHeaderAndShortTxIDs::SHORTTXIDS_LENGTH = 6
static

Definition at line 100 of file blockencodings.h.


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