@@ -9891,8 +9891,8 @@ fn do_test_max_dust_htlc_exposure(dust_outbound_balance: bool, exposure_breach_e
9891
9891
// Default test fee estimator rate is 253 sat/kw, so we set the multiplier to 5_000_000 / 253
9892
9892
// to get roughly the same initial value as the default setting when this test was
9893
9893
// originally written.
9894
- MaxDustHTLCExposure::FeeRateMultiplier(5_000_000 / 253)
9895
- } else { MaxDustHTLCExposure::FixedLimitMsat(5_000_000 ) }; // initial default setting value
9894
+ MaxDustHTLCExposure::FeeRateMultiplier(6_000_000 / 253)
9895
+ } else { MaxDustHTLCExposure::FixedLimitMsat(6_000_000 ) }; // initial default setting value
9896
9896
let node_cfgs = create_node_cfgs(2, &chanmon_cfgs);
9897
9897
let node_chanmgrs = create_node_chanmgrs(2, &node_cfgs, &[Some(config), None]);
9898
9898
let mut nodes = create_network(2, &node_cfgs, &node_chanmgrs);
@@ -10032,7 +10032,7 @@ fn do_test_max_dust_htlc_exposure(dust_outbound_balance: bool, exposure_breach_e
10032
10032
// For the multiplier dust exposure limit, since it scales with feerate,
10033
10033
// we need to add a lot of HTLCs that will become dust at the new feerate
10034
10034
// to cross the threshold.
10035
- for _ in 0..20 {
10035
+ for _ in 0..30 {
10036
10036
let (_, payment_hash, payment_secret) = get_payment_preimage_hash(&nodes[1], Some(1_000), None);
10037
10037
nodes[0].node.send_payment_with_route(&route, payment_hash,
10038
10038
RecipientOnionFields::secret_only(payment_secret), PaymentId(payment_hash.0)).unwrap();
@@ -10054,12 +10054,12 @@ fn do_test_max_dust_htlc_exposure(dust_outbound_balance: bool, exposure_breach_e
10054
10054
fn do_test_max_dust_htlc_exposure_by_threshold_type(multiplier_dust_limit: bool) {
10055
10055
do_test_max_dust_htlc_exposure(true, ExposureEvent::AtHTLCForward, true, multiplier_dust_limit);
10056
10056
do_test_max_dust_htlc_exposure(false, ExposureEvent::AtHTLCForward, true, multiplier_dust_limit);
10057
+ do_test_max_dust_htlc_exposure(false, ExposureEvent::AtHTLCForward, false, multiplier_dust_limit);
10058
+ do_test_max_dust_htlc_exposure(true, ExposureEvent::AtHTLCForward, false, multiplier_dust_limit);
10057
10059
do_test_max_dust_htlc_exposure(false, ExposureEvent::AtHTLCReception, true, multiplier_dust_limit);
10058
10060
do_test_max_dust_htlc_exposure(false, ExposureEvent::AtHTLCReception, false, multiplier_dust_limit);
10059
- do_test_max_dust_htlc_exposure(true, ExposureEvent::AtHTLCForward, false, multiplier_dust_limit);
10060
10061
do_test_max_dust_htlc_exposure(true, ExposureEvent::AtHTLCReception, false, multiplier_dust_limit);
10061
10062
do_test_max_dust_htlc_exposure(true, ExposureEvent::AtHTLCReception, true, multiplier_dust_limit);
10062
- do_test_max_dust_htlc_exposure(false, ExposureEvent::AtHTLCForward, false, multiplier_dust_limit);
10063
10063
do_test_max_dust_htlc_exposure(true, ExposureEvent::AtUpdateFeeOutbound, true, multiplier_dust_limit);
10064
10064
do_test_max_dust_htlc_exposure(true, ExposureEvent::AtUpdateFeeOutbound, false, multiplier_dust_limit);
10065
10065
do_test_max_dust_htlc_exposure(false, ExposureEvent::AtUpdateFeeOutbound, false, multiplier_dust_limit);
0 commit comments