[#CBlockHeaderAndShortTxIDs]
= CBlockHeaderAndShortTxIDs
:mrdocs:

A cmpctblock message&colon; a block header with short transaction IDs for compact relay&period;

== Synopsis

Declared in `&lt;blockencodings&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class CBlockHeaderAndShortTxIDs;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:CBlockHeaderAndShortTxIDs/2constructor-0d.adoc[`CBlockHeaderAndShortTxIDs`]         [.small]#[constructor]#
| Constructors
| xref:CBlockHeaderAndShortTxIDs/BlockTxCount.adoc[`BlockTxCount`] 
| Returns the total number of transactions in the block&period;
| xref:CBlockHeaderAndShortTxIDs/GetShortID.adoc[`GetShortID`] 
| Computes the short ID for a transaction from its witness hash&period;
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:CBlockHeaderAndShortTxIDs/header.adoc[`header`] 
| The block header&period;
|===


== Static Data Members

[cols="1,4"]
|===
| Name| Description
| xref:CBlockHeaderAndShortTxIDs/SHORTTXIDS_LENGTH.adoc[`SHORTTXIDS&lowbar;LENGTH`] 
| Number of bytes used for each short transaction ID&period;
|===


== Protected Data Members

[cols="1,4"]
|===
| Name| Description
| xref:CBlockHeaderAndShortTxIDs/prefilledtxn.adoc[`prefilledtxn`] 
| Transactions sent in full inline, with their positions&period;
| xref:CBlockHeaderAndShortTxIDs/shorttxids.adoc[`shorttxids`] 
| Short (truncated) IDs of the block&apos;s transactions not sent in full&period;
|===


== Friends

[cols="1,4"]
|===
| Name| Description
| `xref:PartiallyDownloadedBlock.adoc[PartiallyDownloadedBlock]`
| A block being reconstructed from a compact block plus mempool&sol;extra transactions&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
