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

#336 followups #351

Merged
merged 5 commits into from
Aug 28, 2024
Merged

#336 followups #351

merged 5 commits into from
Aug 28, 2024

Conversation

tnull
Copy link
Collaborator

@tnull tnull commented Aug 27, 2024

.. a few minor follow-ups to #336.

(cc @slanesuke)

@tnull
Copy link
Collaborator Author

tnull commented Aug 27, 2024

Hmm, the flaky python test seems unrelated, at least seems to work fine locally.

Copy link
Contributor

@slanesuke slanesuke left a comment

Choose a reason for hiding this comment

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

Thanks for the help! LGTM

src/payment/bolt11.rs Outdated Show resolved Hide resolved
src/config.rs Outdated Show resolved Hide resolved
Copy link

@jkczyz jkczyz left a comment

Choose a reason for hiding this comment

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

LGTM. Please squash.

Previously, the `SendingParamters` field was simply an `Option<u64>`,
which however means we could just override it to be `Some`. Here, we
have it be `Option<Option<u64>>` which allows the `None` override. As
UniFFI doesn't support `Option<Option<..>>`, we work around this via a
dedicated `enum` that is only exposed under the `uniffi` feature.
.. as it was used for spontaneous payments only and hence a bit
misleading.

We drop it for now and see if any users would complain. If so, it would
probably be sufficient for it to be an optional parameter on the
spontaneous payments methods.
@tnull
Copy link
Collaborator Author

tnull commented Aug 28, 2024

Squashed without further changes.

@tnull tnull merged commit ab7cc70 into lightningdevkit:main Aug 28, 2024
12 of 13 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.

3 participants