[#node-KernelState]
= xref:node.adoc[node]::KernelState
:relfileprefix: ../
:mrdocs:

State tracked by the KernelNotifications interface meant to be used by mining code, index code, RPCs, and other code sitting above the validation layer&period;

== Synopsis

Declared in `&lt;node&sol;kernel&lowbar;notifications&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct KernelState;
----

== Description

Currently just tracks the chain tip, but could be used to hold other information in the future, like the last flushed block, pruning information, etc&period;

== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:node/KernelState/chainstate_loaded.adoc[`chainstate&lowbar;loaded`] 
| Whether the chainstate has finished loading&period;
| xref:node/KernelState/tip_block.adoc[`tip&lowbar;block`] 
| Hash of the current chain tip block, if known&period;
|===



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