[#btck_Context-0b]
= btck&lowbar;Context
:mrdocs:

Opaque data structure for holding a kernel context&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct btck&lowbar;Context;
----

== Description

The kernel context is used to initialize internal state and hold the chain parameters and callbacks for handling error and validation events&period; Once other validation objects are instantiated from it, the context is kept in memory for the duration of their lifetimes&period;

The processing of validation events is done through an internal task runner owned by the context&period; It passes events through the registered validation interface callbacks&period;

A constructed context can be safely used from multiple threads&period;


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