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

Sync with upstream #13

Merged
merged 10 commits into from
Jun 24, 2024
Merged

Sync with upstream #13

merged 10 commits into from
Jun 24, 2024

Conversation

orbitalturtle
Copy link

This PR is just to sync our ldk-sample fork -- which we use for LNDK's integration tests -- with the upstream ldk-sample fork.

My apologies if anyone who contributed to ldk-sample upstream is tagged in this, please ignore :)

optout21 and others added 10 commits June 20, 2024 19:47
We rework the connect to peer logic to be more in line with ldk-sample, meaning
we pull the main connect logic out of the Node struct, so that it can be used
outside a Node method.
Now that `rust-lightning` has added `rustfmt` support, we make sure our
coding style is aligned.
Previously, we'd deterministically derive the `offer_hash` as a
`PaymentId` for outbound BOLT 12 payments. However, as offers may be
paid multiple times, this could result in collisions in our
`outbound_payments` store.

Here, we therefore use random `PaymentId`s to avoid collisions, even if
offers are paid multiple times.
@orbitalturtle orbitalturtle merged commit 57b5e50 into main Jun 24, 2024
8 checks passed
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.

5 participants