+ // When we check for amount_below_minimum below, we want to test that we're using the *right*
+ // amount, thus we need different htlc_minimum_msat values. We set node[2]'s htlc_minimum_msat
+ // to 2000, which is above the default value of 1000 set in create_node_chanmgrs.
+ // This exposed a previous bug because we were using the wrong value all the way down in
+ // Channel::get_counterparty_htlc_minimum_msat().
+ let mut node_2_cfg: UserConfig = Default::default();
+ node_2_cfg.own_channel_config.our_htlc_minimum_msat = 2000;
+ node_2_cfg.channel_options.announced_channel = true;
+ node_2_cfg.peer_channel_config_limits.force_announced_channel_preference = false;
+