Skip to content

clnrest: skip certificate retry wait for custom clnrest-certs - #9792

Merged
daywalker90 merged 2 commits into
ElementsProject:masterfrom
daywalker90:fix/clnrest-custom-certs-wait
Dec 1, 2026
Merged

daywalker90 merged 2 commits into
ElementsProject:masterfrom
daywalker90:fix/clnrest-custom-certs-wait

Conversation

@daywalker90

Copy link
Copy Markdown
Collaborator

cln-grpc only writes certificates to the default lightning network
directory, never to a custom --clnrest-certs path. Waiting 5 seconds
(10 x 500ms) before generating certificates in a custom directory
stalled startup unnecessarily. Also poll every 100ms instead of 500ms
when waiting on the default directory so cln-grpc certs are picked up
promptly.

Changelog-None

@nGoline nGoline left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One issue with how "custom" is detected, inline. The test itself is good: it would have failed before (the old loop logs Certificates incomplete. Retrying).

Comment thread plugins/rest-plugin/src/main.rs Resolved
Verify `clnrest` with a custom `--clnrest-certs` path generates
certificates without retrying for `cln-grpc`.
`cln-grpc` only writes certificates to the default lightning network
directory, never to a custom `--clnrest-certs` path. Waiting 5 seconds
(10 x 500ms) before generating certificates in a custom directory
stalled startup unnecessarily. Also poll every 100ms instead of 500ms
when waiting on the default directory so `cln-grpc` certs are picked up
promptly.
@daywalker90
daywalker90 force-pushed the fix/clnrest-custom-certs-wait branch from 170c217 to 5c7f51e Compare December 1, 2026 15:26
@daywalker90
daywalker90 requested a review from nGoline December 1, 2026 15:27
@daywalker90
daywalker90 merged commit fd69ca9 into ElementsProject:master Dec 1, 2026
45 of 47 checks passed
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.

2 participants