Merge pull request #1009 from ariard/2021-07-add-forward-dust-limit
[rust-lightning] / lightning / src / ln / functional_test_utils.rs
index 79f8562c099ea61213e8aa71278599318b2f45e7..6c08065bc2f13cfd487bd005d96de13637575558 100644 (file)
@@ -1394,6 +1394,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
 }