CBlockHeaderAndShortTxIDs

A cmpctblock message: a block header with short transaction IDs for compact relay.

Synopsis

Declared in <blockencodings.h>

class CBlockHeaderAndShortTxIDs;

Member Functions

NameDescription
CBlockHeaderAndShortTxIDs [constructor]Constructors
BlockTxCount Returns the total number of transactions in the block.
GetShortID Computes the short ID for a transaction from its witness hash.

Data Members

NameDescription
header The block header.

Static Data Members

NameDescription
SHORTTXIDS_LENGTH Number of bytes used for each short transaction ID.

Protected Data Members

NameDescription
prefilledtxn Transactions sent in full inline, with their positions.
shorttxids Short (truncated) IDs of the block's transactions not sent in full.

Friends

NameDescription
PartiallyDownloadedBlockA block being reconstructed from a compact block plus mempool/extra transactions.