-
Notifications
You must be signed in to change notification settings - Fork 33
Conversation
This comment has been minimized.
This comment has been minimized.
0e34835
to
9dd23ac
Compare
141: Add Lightning support for actions r=D4nte a=D4nte This allows the use of comit-sdk to make current comit-rs e2e lnd tests pass. See comit-network/comit-rs#2107 for the e2e side. Resolves #118. Co-authored-by: Franck Royer <[email protected]>
9dd23ac
to
0b63a61
Compare
); | ||
|
||
const satAmount = "10000"; | ||
const finalCltvDelta = 40; // This MUST be 40 to match Bob's invoice. Further investigation needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I propose to investigate that in a follow-up PR as we would need to play with AddHoldInvoice
and understand whether we can manipulate the finalCtlvDelta
of an invoice when adding it or whether it's a global lnd parameter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, this is now resolved locally. The cltvExpiry
of addHoldInvoice
needs to match the finalCltvDelta
on sendPayment
when paying the invoice.
Which means that we need to add this cltvExpiry
to the ln-add-hold-invoice
action payload.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please open an issue.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Draft PR is coming :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #2155
3e782d7
to
7e0dcc7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
One blocking comment :)
); | ||
|
||
const satAmount = "10000"; | ||
const finalCltvDelta = 40; // This MUST be 40 to match Bob's invoice. Further investigation needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please open an issue.
This is from the learnings we got working on: - comit-network/comit-rs#2107 - comit-network/comit-js-sdk#141
This comment has been minimized.
This comment has been minimized.
bors r+ |
bors r+ |
Already running a review |
Build succeeded |
2155: Follow-up of #2107 r=mergify[bot] a=D4nte Also integrates changes from comit-network/comit-js-sdk#145. 2168: Upgrade node to version 12 r=mergify[bot] a=bonomat @thomaseizinger found an issue describing incompatibility of the node version we are using on circleCI and jest: jestjs/jest#9453. The tests are running locally. So let's upgrade circleCI as well. Co-authored-by: Franck Royer <[email protected]> Co-authored-by: Philipp Hoenisch <[email protected]>
Proof that comit-network/comit-js-sdk#141 works.
Adds a test that does the flow as expected by HALight using hold invoices.
Ready for review.