Bitcoin
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>

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
 
 ADD_SERIALIZE_METHODS
 

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
 

Static Private Attributes

static const int SHORTTXIDS_LENGTH = 6
 

Friends

class PartiallyDownloadedBlock
 

Constructor & Destructor Documentation

◆ CBlockHeaderAndShortTxIDs() [1/2]

CBlockHeaderAndShortTxIDs::CBlockHeaderAndShortTxIDs ( )
inline

◆ CBlockHeaderAndShortTxIDs() [2/2]

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

Member Function Documentation

◆ BlockTxCount()

size_t CBlockHeaderAndShortTxIDs::BlockTxCount ( ) const
inline

◆ FillShortTxIDSelector()

void CBlockHeaderAndShortTxIDs::FillShortTxIDSelector ( ) const
private

◆ 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

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CBlockHeaderAndShortTxIDs::ADD_SERIALIZE_METHODS

◆ header

CBlockHeader CBlockHeaderAndShortTxIDs::header

◆ nonce

uint64_t CBlockHeaderAndShortTxIDs::nonce
private

◆ prefilledtxn

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

◆ shorttxidk0

uint64_t CBlockHeaderAndShortTxIDs::shorttxidk0
mutableprivate

◆ shorttxidk1

uint64_t CBlockHeaderAndShortTxIDs::shorttxidk1
mutableprivate

◆ shorttxids

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

◆ SHORTTXIDS_LENGTH

const int CBlockHeaderAndShortTxIDs::SHORTTXIDS_LENGTH = 6
staticprivate

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