Class
Context
A kernel context — the root runtime object for every validation operation.
final class Context
Mentioned In
Overview
Holds chain parameters (ChainParameters), optional NotificationCallbacks and ValidationInterfaceCallbacks, and the interrupt flag that interrupt() toggles. A ChainstateManager takes a context by reference, so one context can back multiple managers — typical applications use a single long-lived context per process.
The kernel documents contexts as thread-safe for use from multiple threads simultaneously. Create once, share freely.
Wraps the opaque btck_Context type; deinit calls btck_context_destroy when the last Swift reference drops.
Topics
Initializers
Instance Methods