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

topology: call listpeerchannels_done directly #7704

Conversation

JssDWt
Copy link
Contributor

@JssDWt JssDWt commented Sep 30, 2024

When cln is run without deprecated apis, the listchannels call would still query listpeerchannels, even though it wouldn't use the result. This adds unnecessary time to the call. Especially in case the node has many channels. This commit skips the listpeerchannels call in case the outcome won't be used.

Changelog-Fixed: Improve listchannels performance

Checklist

Before submitting the PR, ensure the following tasks are completed. If an item is not applicable to your PR, please mark it as checked:

  • The changelog has been updated in the relevant commit(s) according to the guidelines.
  • Tests have been added or modified to reflect the changes.
  • Documentation has been reviewed and updated as needed.
  • Related issues have been listed and linked, including any that this PR closes.

@JssDWt JssDWt force-pushed the jssdwt-skip-listpeerchannels-in-listchannels branch from 9f32642 to 2a2fe63 Compare October 1, 2024 08:08
@JssDWt
Copy link
Contributor Author

JssDWt commented Oct 1, 2024

Updated to include the fix in bfe0557

@JssDWt
Copy link
Contributor Author

JssDWt commented Oct 1, 2024

I don't think this CI failure is related to this PR: https://github.com/ElementsProject/lightning/actions/runs/11121240025/job/30901106930?pr=7704

@kingonly
Copy link

kingonly commented Oct 4, 2024

@ShahanaFarooqui @cdecker can we prioritize this?

When cln is run without deprecated apis, the `listchannels` call would
still query `listpeerchannels`, even though it wouldn't use the result.
This adds unnecessary time to the call. Especially in case the node has
many channels. This commit skips the listpeerchannels call in case the
outcome won't be used.

Changelog-Fixed: Improve listchannels performance
@cdecker cdecker force-pushed the jssdwt-skip-listpeerchannels-in-listchannels branch from 2a2fe63 to 38efb9d Compare October 4, 2024 14:56
@cdecker
Copy link
Member

cdecker commented Oct 4, 2024

ACK 2a2fe63

@cdecker cdecker enabled auto-merge (rebase) October 4, 2024 14:58
@ShahanaFarooqui
Copy link
Collaborator

@cdecker should it be marked for point release or 24.11?

@cdecker cdecker merged commit 538a007 into ElementsProject:master Oct 4, 2024
37 of 38 checks passed
@JssDWt JssDWt deleted the jssdwt-skip-listpeerchannels-in-listchannels branch October 4, 2024 16:00
@ShahanaFarooqui ShahanaFarooqui added this to the v24.11 milestone Oct 7, 2024
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.

4 participants