mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
opening_control: use chainparams for dust_limit in channel config
tiny fixup to use chainparams instead of inline constant.
This commit is contained in:
@@ -668,7 +668,7 @@ static void channel_config(struct lightningd *ld,
|
||||
* - set `dust_limit_satoshis` to a sufficient value to allow
|
||||
* commitment transactions to propagate through the Bitcoin network.
|
||||
*/
|
||||
ours->dust_limit = AMOUNT_SAT(546);
|
||||
ours->dust_limit = get_chainparams(ld)->dust_limit;
|
||||
ours->max_htlc_value_in_flight = AMOUNT_MSAT(UINT64_MAX);
|
||||
|
||||
/* Don't care */
|
||||
|
||||
Reference in New Issue
Block a user