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

fix: getInvoices method for cln (NaN amount) #2995

Merged
merged 1 commit into from
Jan 18, 2024
Merged

fix: getInvoices method for cln (NaN amount) #2995

merged 1 commit into from
Jan 18, 2024

Conversation

pavanjoshi914
Copy link
Contributor

@pavanjoshi914 pavanjoshi914 commented Jan 17, 2024

Describe the changes you have made in this PR

https://cdecker-lightning.readthedocs.io/lightning-listinvoices.7.html#return-value

amount_msat is optional and may not be included in the payments like keysends. as we filter and show only paid transactions amount_received_msat is always present.

if there is no key value pair for amount in transactions. it shows either 0 or NaN

tried multiple types payments i see keysends don't contains amount_msat field

checked outgoingpayment parameters. transaction list shall be fine by now

Link this PR to an issue [optional]

Fixes #2910

Type of change

(Remove other not matching type)

  • feat: New feature (non-breaking change which adds functionality)

Checklist

  • Self-review of changed code
  • Manual testing
  • Added automated tests where applicable
  • Update Docs & Guides
  • For UI-related changes
  • Darkmode
  • Responsive layout

Copy link
Collaborator

@bumi bumi left a comment

Choose a reason for hiding this comment

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

utACK sounds good to me

@bumi bumi merged commit 0bb5eae into master Jan 18, 2024
6 of 7 checks passed
@bumi bumi deleted the fix/cln branch January 18, 2024 10:50
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.

[BUG] CLN Connection with Rune Shows Balances as NaN
2 participants