From d5ed4309bb6767501b51344a1d6e2c961b1fc661 Mon Sep 17 00:00:00 2001 From: Janus Date: Mon, 28 Jan 2019 20:25:10 +0100 Subject: [PATCH] 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. --- electrum/lnbase.py | 2 +- electrum/tests/test_lnchan.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/electrum/lnbase.py b/electrum/lnbase.py index b5b117545..dc413e2a9 100644 --- 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 index b7d43eb7a..ab21d92d3 100644 --- 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,