Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cln-grpc: do not generate cerficates when no autostart. #6755

Conversation

tonyaldon
Copy link
Contributor

When we don't set grpc-port option, the cln-grpc plugin is not started. So, we shouldn't generate certificates in that case.

@tonyaldon tonyaldon requested a review from cdecker as a code owner October 10, 2023 09:04
Copy link
Member

@cdecker cdecker left a comment

Choose a reason for hiding this comment

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

ACK 87fb39a

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

I think it is missing just some python-format changes and we are good

tests/test_cln_rs.py Outdated Show resolved Hide resolved
@vincenzopalazzo vincenzopalazzo added this to the v23.11 milestone Oct 12, 2023
…pc is not started.

We update `test_grpc_no_auto_start` test to check that we do not
generate certificates when the cln-grpc plugin is not started.

This fails currently, so next commit fix it up.
@tonyaldon tonyaldon force-pushed the cln-grpc-when-no-autostart-do-not-generate-certificates branch from 87fb39a to 00a60a3 Compare October 13, 2023 06:02
@tonyaldon
Copy link
Contributor Author

Thanks @vincenzopalazzo for helping me with my first PRs in CLN and showing me exactly what to change.

I also started to look at the CI logs to find the errors by myself (but maybe better not doing them in the first place).

This is the second time this week I haven't checked Python flake8 before opening a PR. I'll try not to do that mistake in future.

@vincenzopalazzo
Copy link
Collaborator

This is the second time this week I haven't checked Python flake8 before opening a PR. I'll try not to do that mistake in future.

No problem the review are here for this :) I find always Python formatting is a little bit strange :)

Copy link
Collaborator

@vincenzopalazzo vincenzopalazzo left a comment

Choose a reason for hiding this comment

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

ACK 00a60a3

@vincenzopalazzo vincenzopalazzo merged commit 7bea339 into ElementsProject:master Oct 13, 2023
33 of 38 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.

3 participants