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

Add Lightning-node capabilities to the maker #1117

Merged
merged 4 commits into from
Aug 18, 2023
Merged

Add Lightning-node capabilities to the maker #1117

merged 4 commits into from
Aug 18, 2023

Conversation

luckysori
Copy link
Contributor

Fixes #926.
Fixes #1087.

@luckysori luckysori self-assigned this Aug 18, 2023
Copy link
Contributor

@bonomat bonomat left a comment

Choose a reason for hiding this comment

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

Very nice. Thanks

maker/src/routes.rs Outdated Show resolved Hide resolved
Fixes #1087.

We fix two issues here:

- We no longer assume that the order-matching fee is constant. It
actually depends on the state of the blockchain, which can change as
we run the e2e tests (even if run sequentially!).
- We wait for the app to confirm the payment before continuing with
test assertions. Otherwise these tests can be flaky.

The fact that the test needs to know about certain implementation
details (e.g. that the order-matching fee is paid via a payment after
the JIT channel is open) is not great, but it's pretty hard to know
what fee will be charged from within the test before it is actually
paid.

This test will probably have to change when we address
#843.
Any test that depends on some maker functionality will require this!
Fixes #926.

The main goal of this patch is to give the maker the ability to open a
channel with the coordinator to make direct payments. These will
firstly be used to pay order-matching fees. Eventually they will also
be used to set up DLC channels corresponding to trades.
Copy link
Contributor

@klochowicz klochowicz left a comment

Choose a reason for hiding this comment

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

nice work!

@klochowicz klochowicz added this pull request to the merge queue Aug 18, 2023
Merged via the queue into main with commit 03e0b84 Aug 18, 2023
@klochowicz klochowicz deleted the maker-channel branch August 18, 2023 22:06
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.

Numbers don't always add up after funding in e2e tests Add channel capabilities to the maker
3 participants