fix reserve_sat in local_config. see #6896
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user