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

Embedded LND: Keysend: fix fee rate #2016

Merged
merged 6 commits into from
Mar 5, 2024

Conversation

kaloudis
Copy link
Contributor

@kaloudis kaloudis commented Mar 2, 2024

Description

Users were reporting that with the embedded LND node, keysends weren't working unless a direct channel was established to the receiving peer.

The problem was two fold:

  1. The default fee limit for embedded LND keysends was 0
  2. There was no way to pass in the fee rate without AMP enabled (which is not supported by all nodes)

This PR remedies both issues. This PR also:

  • Introduces a new FeeLimit component
  • Fixes c-lightning-REST LN payments to use fee percentage
  • Allows c-lightning-REST users to set their default max fee percentage on the Payment settings view
  • Ensures payment requests are properly decoded before loading the Payment request view
  • Fixes the padding on errors displayed on the Sending Lightning view
  • Improves the padding of locked destinations on the Send view

Before:

simulator_screenshot_13CFD101-353A-4E34-ADA7-9AC4F10FCB73

simulator_screenshot_3B547B7B-4842-40C7-967F-0A8AB8B4E46F

After:

simulator_screenshot_4B0BEAF2-A6E1-40F4-A9FE-C1EA85992332

simulator_screenshot_B8C0D68D-0307-477A-9D3D-F63B82E434E8

This pull request is categorized as a:

  • New feature
  • Bug fix
  • Code refactor
  • Configuration change
  • Locales update
  • Quality assurance
  • Other

Checklist

  • I’ve run yarn run tsc and made sure my code compiles correctly
  • I’ve run yarn run lint and made sure my code didn’t contain any problematic patterns
  • I’ve run yarn run prettier and made sure my code is formatted correctly
  • I’ve run yarn run test and made sure all of the tests pass

Testing

If you modified or added a utility file, did you add new unit tests?

  • No, I’m a fool
  • Yes
  • N/A

I have tested this PR on the following platforms (please specify OS version and phone model/VM):

  • Android
  • iOS

I have tested this PR with the following types of nodes (please specify node version and API version where appropriate):

  • Embedded LND
  • LND (REST)
  • LND (Lightning Node Connect)
  • Core Lightning (c-lightning-REST)
  • LndHub
  • [DEPRECATED] Core Lightning (Spark)
  • [DEPRECATED] Eclair

Locales

  • I’ve added new locale text that requires translations
  • I’m aware that new translations should be made on the ZEUS Transfix page and not directly to this repo

Third Party Dependencies and Packages

  • Contributors will need to run yarn after this PR is merged in
  • 3rd party dependencies have been modified:
    • verify that package.json and yarn.lock have been properly updated
    • verify that dependencies are installed for both iOS and Android platforms

Other:

  • Changes were made that require an update to the README
  • Changes were made that require an update to onboarding

@kaloudis kaloudis force-pushed the embedded-lnd-keysend branch 2 times, most recently from 8ffca5c to d21886a Compare March 2, 2024 10:08
@kaloudis kaloudis added this to the v0.8.2 milestone Mar 2, 2024
@kaloudis kaloudis force-pushed the embedded-lnd-keysend branch 2 times, most recently from 5efe46b to a7afedd Compare March 4, 2024 15:06
@kaloudis kaloudis force-pushed the embedded-lnd-keysend branch 6 times, most recently from c7c4009 to a373e3d Compare March 5, 2024 05:12
@kaloudis kaloudis marked this pull request as draft March 5, 2024 05:50
@kaloudis kaloudis marked this pull request as ready for review March 5, 2024 06:06
Copy link
Contributor

@shubhamkmr04 shubhamkmr04 left a comment

Choose a reason for hiding this comment

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

Simulator Screenshot - iPhone 15 Pro - 2024-03-05 at 19 28 47

Alignment issue here

Copy link
Contributor

@shubhamkmr04 shubhamkmr04 left a comment

Choose a reason for hiding this comment

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

Screen.Recording.2024-03-05.at.8.23.32.PM.mov

This flow looks a little glitchy

@kaloudis kaloudis merged commit 48fa389 into ZeusLN:master Mar 5, 2024
3 checks passed
@kaloudis kaloudis deleted the embedded-lnd-keysend branch March 5, 2024 18:14
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.

None yet

2 participants