[#CDiskBlockIndex-GetBlockHash-01]
= xref:CDiskBlockIndex.adoc[CDiskBlockIndex]::GetBlockHash
:relfileprefix: ../
:mrdocs:

`GetBlockHash` overloads

== Synopses

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

Returns the hash of this block&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:uint256.adoc[uint256]
xref:CBlockIndex/GetBlockHash.adoc[GetBlockHash]() const;
----

[.small]#xref:CBlockIndex/GetBlockHash.adoc[_» more&period;&period;&period;_]#

Deleted&colon; use ConstructBlockHash(), since the on&hyphen;disk entry has no cached hash&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:uint256.adoc[uint256]
xref:CDiskBlockIndex/GetBlockHash-0b.adoc[GetBlockHash]() = delete;
----

[.small]#xref:CDiskBlockIndex/GetBlockHash-0b.adoc[_» more&period;&period;&period;_]#

== Return Value

The block hash&period; The block must have an associated hash&period;


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