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: show error when trying to create LN invoice with amount > remoteBalance #1894

Merged
merged 1 commit into from
May 28, 2024

Conversation

limpbrains
Copy link
Collaborator

Description

Without this fix it just shows you old / 0-amount invoice, confusing

Linked Issues/Tasks

Type of change

Bug fix

Tests

No test

Screenshot / Video

QA Notes

  • open LN channel
  • try to generate invoice with amount > incoming capacity
  • error should appear

@limpbrains limpbrains requested a review from coreyphillips May 28, 2024 16:34
@limpbrains limpbrains merged commit e545637 into master May 28, 2024
6 checks passed
@limpbrains limpbrains deleted the insufficient branch May 28, 2024 17:21
@catch-21
Copy link
Contributor

catch-21 commented Jun 3, 2024

I thought it should be possible to establish a new connection via CJIT in this scenario, no?

@catch-21
Copy link
Contributor

catch-21 commented Jun 3, 2024

Tested on 1e714a9
"Insufficient receiving balance" error now shown 👍

Although, the icon in the centre of the QR still indicates it is for both onchain and LN. Tracking here: #1936

@JeanlChristophe
Copy link

Yes it is possible to have a second channel (I did it).

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.

4 participants