Skip to content

Refactor litclient and perms to reduce LNC dependencies #1057

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

Merged
merged 4 commits into from
May 6, 2025

Conversation

ffranr
Copy link
Contributor

@ffranr ffranr commented May 2, 2025

Context: lightninglabs/lightning-node-connect#113


  • Extracted perms into a standalone module to limit lnc dependencies.
  • Moved jsoncallbacks.go into litrpc to reduce lnc import scope.
  • Bumped lnd version in litrpc to match parent module.

ffranr added 2 commits May 2, 2025 15:00
Moved jsoncallbacks.go into the litrpc package, allowing Lightning Node
Connect to stop importing the litclient package. This change avoids
pulling in the rest of lit and taproot-assets, as litclient was not a
separate module. The now-empty litclient directory has also been
removed.
Updated the LND version in litrpc to align with the version used in
the parent module, ensuring consistency across dependencies.
@ffranr ffranr added the LNC lightning-node-connect sessions label May 2, 2025
@ffranr ffranr requested review from bhandras and guggero May 2, 2025 15:50
@ffranr ffranr self-assigned this May 2, 2025
@ffranr ffranr added the no-changelog This PR is does not require a release notes entry label May 2, 2025
Copy link
Member

@bhandras bhandras left a comment

Choose a reason for hiding this comment

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

LGTM, very nice! 🎉 (needs release notes to pass CI)

@ffranr ffranr removed the no-changelog This PR is does not require a release notes entry label May 4, 2025
Copy link
Member

@guggero guggero left a comment

Choose a reason for hiding this comment

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

Nice, LGTM 🎉

ffranr added 2 commits May 6, 2025 12:01
Converted the perms package into its own module to prevent Lightning
Node Connect from importing the entire lit repo, which includes
taproot-assets. This change avoids exhausting symbol limits in the LNC
WASM client due to unnecessary transitive dependencies.
@ffranr ffranr force-pushed the reduce-lnc-import-scope branch from f0af13b to d5d4bd6 Compare May 6, 2025 11:02
@ffranr ffranr merged commit 08095d3 into master May 6, 2025
21 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Taproot-Assets Project Board May 6, 2025
@ffranr ffranr deleted the reduce-lnc-import-scope branch May 6, 2025 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LNC lightning-node-connect sessions
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

3 participants