btck_context_interrupt

Interrupt can be used to halt long-running validation functions like when reindexing, importing or processing blocks.

Synopsis

Declared in <kernel/bitcoinkernel.h>

[[nodiscard, __nonnull__]]
int
btck_context_interrupt(btck_Context* context);

Return Value

0 if the interrupt was successful, non-zero otherwise.

NOTE

The return value should not be discarded.

Parameters

NameDescription
context [in]Non-null.