-
Notifications
You must be signed in to change notification settings - Fork 28
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
Feature: Multi-Implementation Support #26
Comments
I'd suggest starting with CLN or LDK-node first, so those are likely the easiest. |
New tasks. Blocked by incompleteness in CLN rpc types
We use |
Let me take a look at that payment error data and how to parse it |
Taking a look at LND's failure codes - some are spec-defined and some are "user friendly"/LND specific: Custom LND ErrorsThese are not related to spec LND could not find a route (due to timeout / no route / no local liquidity):
Spec errors:Spec failure codes related to the details for the final hop are represented by a single LND API value.
Any other failure code is expressed with a generic error value: |
I think we're probably going to have to go with our own mapping - something like this:
|
For the record: ElementsProject/lightning#6634 |
Dropping this down to medium now that we have LND and CLN. |
So I spent some time looking into LDK-Node integration and wanted to share some of my findings here in case there were any suggestions before I move forward.
I'm working on a PR and that will provide more clarity on where other shortcomings / blockers might be, but thought I would just point this all out here in case you had any suggestions / concerns before I continue on. |
Re 1 + 2: While I'm not against our spinning up LDK nodes within Sim-LN some day, I don't really see it as a high priority if not yet pulled together into a usable daemon. Reasoning being that a) people probably aren't really using it right now if it's difficult to run and b) our value proposition is to add payment simulation to existing networks. If you'd be interested, I think that working on eclair support would be a massive value add as it's one of the major players in the routing network and would be a great addition to be able to simulate more realistic networks. That said, if the work of pulling together LDK node is minimal it could be something we could look - but I'd need some convincing tbh. Answers to the rest anyway: |
Got it thanks @carlaKC! That makes sense to me and I agree it's prob not ready at this stage to be considered. I was eager to play with it and see what it is about, so this was a good learning experience regardless. 👍 |
For the reasons mentioned in this comment with whom I agree (especially the lack of current daemon-like runtime wrapping the LDK node library) I don't know if LDK node is the best way to go to support LDK. Even assuming a runtime is built around LDK node, I'm not sure if its On the other hand, I agree, it sounds the massive value add would be to add eclair support. From #181 and reading its documentation ( The |
My take on this:
|
On eclair support, there is no RPC plugin available "just out of the box", however the current Eclair plugins and node architecture is reasonably easy to hack on, after just looking at it a couple of hours. Started a From then, you can have |
Add alternative implementations of
LightningNode
trait for:The text was updated successfully, but these errors were encountered: