Enforce `max_balance_dust_htlc_msat` at HTLC reception/forward
[rust-lightning] / lightning / src / ln / functional_test_utils.rs
index 807bb20f7ece8f460facfa7dc8d955f4dff7c642..dfda381bfc72d63945e057c9e72a0ee5f406bfd2 100644 (file)
@@ -1384,6 +1384,9 @@ pub fn test_default_channel_config() -> UserConfig {
        // When most of our tests were written, the default HTLC minimum was fixed at 1000.
        // It now defaults to 1, so we simply set it to the expected value here.
        default_config.own_channel_config.our_htlc_minimum_msat = 1000;
+       // When most of our tests were written, we didn't have the notion of a `max_dust_htlc_exposure_msat`,
+       // It now defaults to 5_000_000 msat; to avoid interfering with tests we bump it to 50_000_000 msat.
+       default_config.channel_options.max_dust_htlc_exposure_msat = 50_000_000;
        default_config
 }