electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit eb6eac92544034b487fa04a6b422537c1de9f348
parent d70431c0e7f1eeb028099f6a40706b6ed39c9966
Author: ThomasV <thomasv@electrum.org>
Date:   Thu, 31 Dec 2020 08:44:26 +0100

fix reserve_sat in local_config. see #6896

Diffstat:
Melectrum/lnpeer.py | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py @@ -498,15 +498,17 @@ class Peer(Logger): static_remotekey = bfh(wallet.get_public_key(addr)) else: static_remotekey = None + dust_limit_sat = bitcoin.DUST_LIMIT_DEFAULT_SAT_LEGACY + reserve_sat = max(funding_sat // 100, dust_limit_sat) local_config = LocalConfig.from_seed( channel_seed=channel_seed, static_remotekey=static_remotekey, to_self_delay=self.network.config.get('lightning_to_self_delay', 7 * 144), - dust_limit_sat=bitcoin.DUST_LIMIT_DEFAULT_SAT_LEGACY, + dust_limit_sat=dust_limit_sat, max_htlc_value_in_flight_msat=funding_sat * 1000, max_accepted_htlcs=5, initial_msat=initial_msat, - reserve_sat=funding_sat // 100, + reserve_sat=reserve_sat, funding_locked_received=False, was_announced=False, current_commitment_signature=None,