Skip to content

Conversation

@starius
Copy link
Collaborator

@starius starius commented Nov 16, 2025

Fix errors like:

[ERR] SADDR manager.go:699: Error waiting for confirmation: rpc error: code = Unknown desc = a height hint greater than 0 must be provided

When loopd boots before lnd has reported a positive tip, the static address managers captured a zero initiation height and later passed it into RegisterConfirmationsNtfn, triggering lnd's ErrNoHeightHint. The notifier recently started up later than the RPC server, so this race became visible in itest logs. This PR makes every static-address manager constructor reject zero heights, wires those errors through loopd so we abort startup instead of running with invalid hints.

Updated Go to 1.24.10 and lndclient to v0.20.0-6 to use BlockUntilChainNotifier from lightninglabs/lndclient#255

Pull Request Checklist

  • Update release_notes.md if your PR contains major features, breaking changes or bugfixes

Make it easier to distinguish this error from a similar error few lines above.
Loop now guards all static-address managers against zero block heights: each
constructor returns an error when invoked with a non-positive current height,
and `loopd` validates the height from `GetInfo` before instantiating them.
Tests and helper code were updated accordingly so we fail fast instead of
registering chain notifications with invalid hints.
@starius starius marked this pull request as ready for review November 16, 2025 04:54
@starius starius mentioned this pull request Nov 16, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants