spesmilo / electrum

Electrum Bitcoin Wallet
https://electrum.org
MIT License
7.5k stars 3.1k forks source link

LN channel opening error with eclair. max_htlc_value_in_flight_msat is too small #8712

Open git70 opened 12 months ago

git70 commented 12 months ago

Hi

Electrum 4.4.6 Appimage

I first tried Submarine Swap, but here I received the explanation that it is temporarily impossible...

Currently I can't open a new Electrum Trampoline channel because I get the error: Could not open channel: Exception('RemoteConfig. max_htlc_value_in_flight_msat is too small: 90000000')

Can anyone help me?

SomberNight commented 11 months ago

What is the size/capacity of the channel you are trying to open when getting this error?

git70 commented 11 months ago

What is the size/capacity of the channel you are trying to open when getting this error?

I clicked the "min" button = 0.002 BTC

SomberNight commented 11 months ago

Ok, I can reproduce. I guess eclair changed how they are defaulting this parameter, and it fails outside our restrictions.

SomberNight commented 5 months ago

The workaround is to open a channel that has a larger capacity.

Eclair by default sets max_htlc_value_in_flight_msat to 45% of the channel capacity, and electrum requires this value to be at least 1 mBTC. So if you try opening a channel with a capacity of 2 mBTC, eclair will set the parameter to 0.9 mBTC, which is below the 1 mBTC minimum electrum requires.