feat: add min_capacity_sat config value and switch

- add config value min_capacity_sat that will replaces the magic value
  min_effective_htlc_capacity = AMOUNT_MSAT(1000000)
- add config switch min_capacity_sat
This commit is contained in:
Michael Schmoock
2019-04-03 10:20:38 +02:00
committed by Christian Decker
parent 41dd975aac
commit c7af0c93c9
4 changed files with 17 additions and 2 deletions

View File

@@ -67,6 +67,9 @@ struct config {
/* Are we allowed to use DNS lookup for peers. */
bool use_dns;
/* Minimal amount of effective funding_satoshis for accepting channels */
u64 min_capacity_sat;
};
struct lightningd {