1 suggestion
Optional improvements
[suggestion] · waitTipChanged leaves invalid-timeout coercion undocumented
The interface omits waitTipChanged's deliberate negative/NaN-to-zero behavior; negative coercion already existed in non-aborting builds, and no current client producing these inputs was identified.
Location: src/node/block_template_manager.cpp:232 (head).
Details and suggested fix
Mining::waitTipChanged in mining.h describes only how long to wait and the default, while mining.capnp exposes a bare Float64. The new clamp explicitly accepts negative and NaN values as zero, so clients should not need to inspect the implementation to discover whether these inputs cause an error or a timeout. Document that normalization in the interface timeout comment and IPC schema. Preserve the existing qualification that startup waits for a connected tip regardless of the timeout, rather than promising an unconditional immediate return.