Interrupt can be used to halt long-running validation functions like when reindexing, importing or processing blocks.
Declared in <kernel/bitcoinkernel.h>
[[nodiscard, __nonnull__]]
int
btck_context_interrupt(btck_Context* context);
0 if the interrupt was successful, non-zero otherwise.
The return value should not be discarded.
| Name | Description |
|---|---|
| context [in] | Non-null. |