commit d5ed4309bb6767501b51344a1d6e2c961b1fc661
parent e6bd3959e08c57ec5eea31e92ac12a4a6f42c3c3
Author: Janus <ysangkok@gmail.com>
Date: Mon, 28 Jan 2019 20:25:10 +0100
revert low max_htlc_value_in_flight_msat, fix test
spec does not mention that there can be an upper bound
on max_htlc_value_in_flight_msat, so don't try to make
any node happy that has a max limit on this.
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/electrum/lnbase.py b/electrum/lnbase.py
@@ -402,7 +402,7 @@ class Peer(PrintError):
revocation_basepoint=keypair_generator(LnKeyFamily.REVOCATION_BASE),
to_self_delay=9,
dust_limit_sat=546,
- max_htlc_value_in_flight_msat=200000000,
+ max_htlc_value_in_flight_msat=0xffffffffffffffff,
max_accepted_htlcs=5,
initial_msat=initial_msat,
ctn=-1,
diff --git a/electrum/tests/test_lnchan.py b/electrum/tests/test_lnchan.py
@@ -59,6 +59,7 @@ def create_channel_state(funding_txid, funding_index, funding_sat, local_feerate
ctn = -1,
next_htlc_id = 0,
reserve_sat=0,
+ htlc_minimum_msat=1,
next_per_commitment_point=nex,
current_per_commitment_point=cur,