[#CChain-SetTip]
= xref:CChain.adoc[CChain]::SetTip
:relfileprefix: ../
:mrdocs:

Set&sol;initialize a chain with a given tip&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SetTip(xref:CBlockIndex.adoc[CBlockIndex]& block);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *block*
| The block index entry to set as the new tip&period;
|===


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