]> git.bitcoin.ninja Git - rust-lightning/commit
Make htlc_minimum_msat configurable
authorAntoine Riard <ariard@student.42.fr>
Tue, 10 Mar 2020 17:03:10 +0000 (13:03 -0400)
committerAntoine Riard <ariard@student.42.fr>
Wed, 11 Mar 2020 18:28:20 +0000 (14:28 -0400)
commit9e03d2bc7a5d45c56722b40348b143403167142c
treebca0cc8b52a1d09dd7dec62a7c83e3d8ddc191c8
parent4abfd515e554bef90c25dbe1e016da93d2a5dc9f
Make htlc_minimum_msat configurable

Enforce a minimum htlc_minimum_msat of 1.

Instead of computing dynamically htlc_minimum_msat based on feerate,
relies on user-provided configuration value. This let user compute
an economical-driven channel parameter according to network dynamics.
lightning/src/ln/channel.rs
lightning/src/ln/functional_test_utils.rs
lightning/src/util/config.rs