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

Synopsis

Declared in <blockencodings.h>

class CBlockHeaderAndShortTxIDs;

Member Functions

Name

Description

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

Name

Description

header

The block header.

Static Data Members

Name

Description

SHORTTXIDS_LENGTH

Number of bytes used for each short transaction ID.

Protected Data Members

Name

Description

prefilledtxn

Transactions sent in full inline, with their positions.

shorttxids

Short (truncated) IDs of the block's transactions not sent in full.

Friends

Name

Description

PartiallyDownloadedBlock

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

Created with MrDocs