[#CMerkleBlock]
= CMerkleBlock
:mrdocs:

Used to relay blocks as header &plus; vector&lt;merkle branch&gt; to filtered nodes&period;

== Synopsis

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

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

== Description

NOTE&colon; The class assumes that the given CBlock has _at least_ 1 transaction&period; If the CBlock has 0 txs, it will hit an assertion&period;

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:CMerkleBlock/2constructor-09.adoc[`CMerkleBlock`]         [.small]#[constructor]#
| Constructors
|===


== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:CMerkleBlock/header.adoc[`header`] 
| Public only for unit testing
| xref:CMerkleBlock/txn.adoc[`txn`] 
| Partial merkle tree proving which transactions the block contains&period;
| xref:CMerkleBlock/vMatchedTxn.adoc[`vMatchedTxn`] 
| Public only for unit testing and relay testing (not relayed)&period;
|===



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