mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 09:04:22 +01:00
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:
committed by
Christian Decker
parent
41dd975aac
commit
c7af0c93c9
@@ -662,8 +662,10 @@ static void channel_config(struct lightningd *ld,
|
||||
{
|
||||
/* FIXME: depend on feerate. */
|
||||
*max_to_self_delay = ld->config.locktime_max;
|
||||
/* This is 1c at $1000/BTC */
|
||||
*min_effective_htlc_capacity = AMOUNT_MSAT(1000000);
|
||||
|
||||
/* Take minimal effective capacity from config min_capacity_sat */
|
||||
amount_msat_from_sat_u64(min_effective_htlc_capacity,
|
||||
ld->config.min_capacity_sat);
|
||||
|
||||
/* BOLT #2:
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user