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

Task: integration tests for making payments to Eclair/CLN offers #157

Open
orbitalturtle opened this issue Aug 28, 2024 · 0 comments
Open
Labels

Comments

@orbitalturtle
Copy link
Collaborator

Description

Integration tests for making payments to Eclair and CLN offers. This will help us to ensure that new changes don't mess up payments.

Steps to Complete

  1. Decide how to build and run Eclair for out integration tests. Currently we build LND in the Makefile and run it directly in Rust:
    let cmd = Command::new("./lnd-itest")
    . But maybe a better option would be to use Docker (similar to ldk-node: https://github.com/lightningdevkit/ldk-node/blob/main/docker-compose-cln.yml cc: @tnull) to spin up the nodes to help ensure that the tests can run on all platforms.
  2. With this as a backbone, write up some integration tests showing that we can make a payment to an offer created by an Eclair node. The integration tests are located here: https://github.com/lndk-org/lndk/tree/master/tests
  3. Repeat the above steps for CLN. (This could go in a separate PR if it's a decent amount of code.)

Notes

For Eclair: Note that in addition to running the Eclair node, the tipjar plugin needs to be enabled. The instructions can be found here: https://github.com/lndk-org/lndk/blob/master/docs/test_pay_offer.md

For CLN, make sure to use v24.08 (it should be released soon, though the master branch can potentially be used for now). Payments don't work to prior versions of CLN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant