Bitcoin Core  0.15.99
P2P Digital Currency
Public Member Functions | Public Attributes | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
CBlockHeaderAndShortTxIDs Class Reference

#include <blockencodings.h>

Collaboration diagram for CBlockHeaderAndShortTxIDs:

Public Member Functions

 CBlockHeaderAndShortTxIDs ()
 CBlockHeaderAndShortTxIDs (const CBlock &block, bool fUseWTXID)
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

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


class PartiallyDownloadedBlock

Detailed Description

Definition at line 131 of file blockencodings.h.

Constructor & Destructor Documentation

◆ CBlockHeaderAndShortTxIDs() [1/2]

CBlockHeaderAndShortTxIDs::CBlockHeaderAndShortTxIDs ( )

Definition at line 149 of file blockencodings.h.

◆ CBlockHeaderAndShortTxIDs() [2/2]

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

◆ BlockTxCount()

size_t CBlockHeaderAndShortTxIDs::BlockTxCount ( ) const

Definition at line 155 of file blockencodings.h.

◆ FillShortTxIDSelector()

void CBlockHeaderAndShortTxIDs::FillShortTxIDSelector ( ) const

Definition at line 31 of file blockencodings.cpp.

Here is the caller graph for this function:

◆ GetShortID()

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:

◆ SerializationOp()

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

Definition at line 160 of file blockencodings.h.

Friends And Related Function Documentation

◆ PartiallyDownloadedBlock

friend class PartiallyDownloadedBlock

Definition at line 138 of file blockencodings.h.

Member Data Documentation



Definition at line 157 of file blockencodings.h.

◆ header

CBlockHeader CBlockHeaderAndShortTxIDs::header

Definition at line 146 of file blockencodings.h.

◆ nonce

uint64_t CBlockHeaderAndShortTxIDs::nonce

Definition at line 134 of file blockencodings.h.

◆ prefilledtxn

std::vector<PrefilledTransaction> CBlockHeaderAndShortTxIDs::prefilledtxn

Definition at line 143 of file blockencodings.h.

◆ shorttxidk0

uint64_t CBlockHeaderAndShortTxIDs::shorttxidk0

Definition at line 133 of file blockencodings.h.

◆ shorttxidk1

uint64_t CBlockHeaderAndShortTxIDs::shorttxidk1

Definition at line 133 of file blockencodings.h.

◆ shorttxids

std::vector<uint64_t> CBlockHeaderAndShortTxIDs::shorttxids

Definition at line 142 of file blockencodings.h.


const int CBlockHeaderAndShortTxIDs::SHORTTXIDS_LENGTH = 6

Definition at line 140 of file blockencodings.h.

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