Follow-up to #34885 (review)
Summary
Align height-related parameters and return values in the kernel API to use int32_t.
Motivation
The convention in the API is to use fixed-width types like int32_t for data values (e.g. heights), and plain int/unsigned int for boolean-like values and flags. Two functions were not following this:
btck_chain_get_height: header declaredint32_tbut implementation usedintbtck_chain_get_by_height: both header and implementation used plainint
Changes
btck_chain_get_height: align.cppto match header (int->int32_t)btck_chain_get_by_height: update both header and.cpp(int->int32_t)CountEntriesinbitcoinkernel_wrapper.h: align return type toint32_tGetByHeightinbitcoinkernel_wrapper.h: align parameter type toint32_t- Document integer type conventions in the
@page remarkssection ofbitcoinkernel.h
Note: This is technically a breaking change for C consumers who have function pointer declarations matching the old signature. The Rust, Go, Java and Python bindings should not be affected.