Skip to content
This repository was archived by the owner on Feb 12, 2025. It is now read-only.

OpenChannelCapacityFragment: Fix off-by-one in max capacity#210

Merged
dpad85 merged 1 commit intoACINQ:testnetfrom
maflcko:patch-1
Sep 19, 2019
Merged

OpenChannelCapacityFragment: Fix off-by-one in max capacity#210
dpad85 merged 1 commit intoACINQ:testnetfrom
maflcko:patch-1

Conversation

@maflcko
Copy link

@maflcko maflcko commented Sep 18, 2019

Potentially fixes #202

(didn't test because I couldn't figure out how to compile and run this easily without some binary blob from google)

@dpad85
Copy link
Member

dpad85 commented Sep 19, 2019

Good catch, thanks!

However this does not fix #202. To know what channel capacity would exhaust our balance, we need first to estimate the fees for a multisig tx (i.e simulating a channel), and that does not work well. So the issue must be either in the method creating the fake multisig tx, or in the wallet in eclair-core.

@dpad85
Copy link
Member

dpad85 commented Sep 19, 2019

Sorry, my previous comment is mistaken, I was thinking about another issue where the Use all available funds when opening a channel would often leave change (related to #211)

This PR does fixes #202 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ui] "Open a Lightning channel" with "Use all funds" always gives error message

2 participants