btck::ContextOptions

Owning wrapper over btck_ContextOptions, configuring a Context before creation.

Synopsis

Declared in <kernel/bitcoinkernel_wrapper.h>

class ContextOptions
    : public UniqueHandle<btck_ContextOptions, btck_context_options_destroy>

Base Classes

NameDescription
UniqueHandle<btck_ContextOptions, btck_context_options_destroy>Owning RAII handle for a non-copyable C object, backed by std::unique_ptr.

Member Functions

NameDescription
ContextOptions [constructor]Constructs an empty set of context options.
SetChainParams Sets the chain parameters for the context.
SetNotifications Registers a kernel notification handler for the context.
SetValidationInterface Registers a validation event handler for the context.
get Returns the owned C handle.

Protected Types

NameDescription
Deleter Custom deleter that forwards to the C destroy function.

Protected Data Members

NameDescription
m_ptr The owned C handle.