-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Onion messaging + bolt 12 offers #9369
base: master
Are you sure you want to change the base?
Conversation
Co-authored-by: Gijs van Dam <[email protected]>
Co-authored-by: Gijs van Dam <[email protected]>
Co-authored-by: Gijs van Dam <[email protected]>
Co-authored-by: Gijs van Dam <[email protected]>
The `DefaultTimeout` in `lntest` is currently set to 30 seconds. This is too short for tests where we wait for node restarts. This commit adjusts the value to 60 seconds.
Important Review skippedAuto reviews are limited to specific labels. 🏷️ Labels to auto review (1)
Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
If this is just a POC to show that we can still use my old code, ignore the below. If this is actually an approach being considered I have some thoughts. If the plan it to implement BOLTs externally going forward, I think that the design should be more carefully thought out (eg, importing lndclient is going to be an absolute disaster for dependencies), likely taking an approach similar to The ability to run an external daemon with full onion messaging (that has actually been reviewed!!!) and bolt 12 send support already exists in LNDK, so I feel that the most impactful use of time would be to start updating and reviewing the OM code properly (either in a LND pr, or in a |
This branch builds on earlier work by @carlaKC. The branch imports the experimental library
boltnd
and uses it to add support for bolt12 to LND.Since the original work is over 2 years old now, I've updated both this branch and the experimental library
boltnd
to work with the latest versions oflnd
,lndclient
andlightning-onion
. Since route blinding is now supported natively, we don't have to depend on custom forks of those libraries.CAVEAT
This is by no means production ready.
Also, any changes to the bolt12 spec from the past 2 years have not been implemented. The current branch only "fixes" the original code to work with the current state of lnd and related libraries.
I opened up this draft PR to sollicit early feedback.
Building LND with bolt12 support
This branch introduces the
bolt12
build flag, enabling support forbolt12
. It introduces two Makefile targets that work with this new flag:itest-b12
build-itest-b12
Todos
boltnd
code inlnd
or keep it as a external library. Originally, the code is largely implemented in the externalboltnd
library, to keep a clean separation of experimental code. But when the experimental label isn't applicable anymore, we need to decide on how to go forward.