@@ -1552,7 +1552,7 @@ fn test_chan_reserve_violation_outbound_htlc_inbound_chan() {
1552
1552
let (route, our_payment_hash, _, our_payment_secret) = get_route_and_payment_hash!(nodes[1], nodes[0], 1_000_000);
1553
1553
// Sending exactly enough to hit the reserve amount should be accepted
1554
1554
for _ in 0..MIN_AFFORDABLE_HTLC_COUNT {
1555
- let (_, _, ..) = route_payment(&nodes[1], &[&nodes[0]], 1_000_000);
1555
+ route_payment(&nodes[1], &[&nodes[0]], 1_000_000);
1556
1556
}
1557
1557
1558
1558
// However one more HTLC should be significantly over the reserve amount and fail.
@@ -1582,7 +1582,7 @@ fn test_chan_reserve_violation_inbound_htlc_outbound_channel() {
1582
1582
1583
1583
// Send four HTLCs to cover the initial push_msat buffer we're required to include
1584
1584
for _ in 0..MIN_AFFORDABLE_HTLC_COUNT {
1585
- let (_, _, ..) = route_payment(&nodes[1], &[&nodes[0]], 1_000_000);
1585
+ route_payment(&nodes[1], &[&nodes[0]], 1_000_000);
1586
1586
}
1587
1587
1588
1588
let (mut route, payment_hash, _, payment_secret) =
@@ -1643,11 +1643,11 @@ fn test_chan_reserve_dust_inbound_htlcs_outbound_chan() {
1643
1643
// In the previous code, routing this dust payment would cause nodes[0] to perceive a channel
1644
1644
// reserve violation even though it's a dust HTLC and therefore shouldn't count towards the
1645
1645
// commitment transaction fee.
1646
- let (_, _, ..) = route_payment(&nodes[1], &[&nodes[0]], dust_amt);
1646
+ route_payment(&nodes[1], &[&nodes[0]], dust_amt);
1647
1647
1648
1648
// Send four HTLCs to cover the initial push_msat buffer we're required to include
1649
1649
for _ in 0..MIN_AFFORDABLE_HTLC_COUNT {
1650
- let (_, _, ..) = route_payment(&nodes[1], &[&nodes[0]], 1_000_000);
1650
+ route_payment(&nodes[1], &[&nodes[0]], 1_000_000);
1651
1651
}
1652
1652
1653
1653
// One more than the dust amt should fail, however.
@@ -1708,22 +1708,22 @@ fn test_chan_reserve_dust_inbound_htlcs_inbound_chan() {
1708
1708
1709
1709
let payment_amt = 46000; // Dust amount
1710
1710
// In the previous code, these first four payments would succeed.
1711
- let (_, _, ..) = route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1712
- let (_, _, ..) = route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1713
- let (_, _, ..) = route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1714
- let (_, _, ..) = route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1711
+ route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1712
+ route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1713
+ route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1714
+ route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1715
1715
1716
1716
// Then these next 5 would be interpreted by nodes[1] as violating the fee spike buffer.
1717
- let (_, _, ..) = route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1718
- let (_, _, ..) = route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1719
- let (_, _, ..) = route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1720
- let (_, _, ..) = route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1721
- let (_, _, ..) = route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1717
+ route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1718
+ route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1719
+ route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1720
+ route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1721
+ route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1722
1722
1723
1723
// And this last payment previously resulted in nodes[1] closing on its inbound-channel
1724
1724
// counterparty, because it counted all the previous dust HTLCs against nodes[0]'s commitment
1725
1725
// transaction fee and therefore perceived this next payment as a channel reserve violation.
1726
- let (_, _, ..) = route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1726
+ route_payment(&nodes[0], &[&nodes[1]], payment_amt);
1727
1727
}
1728
1728
1729
1729
#[test]
@@ -7007,7 +7007,7 @@ fn do_test_sweep_outbound_htlc_failure_update(revoked: bool, local: bool) {
7007
7007
7008
7008
// We revoked bs_commitment_tx
7009
7009
if revoked {
7010
- let (payment_preimage_3, _, ..) = route_payment(&nodes[0], &[&nodes[1]], 1000000);
7010
+ let (payment_preimage_3, ..) = route_payment(&nodes[0], &[&nodes[1]], 1000000);
7011
7011
claim_payment(&nodes[0], &vec!(&nodes[1])[..], payment_preimage_3);
7012
7012
}
7013
7013
@@ -7721,7 +7721,7 @@ fn test_bump_txn_sanitize_tracking_maps() {
7721
7721
7722
7722
let chan = create_announced_chan_between_nodes_with_value(&nodes, 0, 1, 1000000, 59000000);
7723
7723
// Lock HTLC in both directions
7724
- let (payment_preimage_1, _, ..) = route_payment(&nodes[0], &vec!(&nodes[1])[..], 9_000_000);
7724
+ let (payment_preimage_1, ..) = route_payment(&nodes[0], &vec!(&nodes[1])[..], 9_000_000);
7725
7725
let (_, payment_hash_2, ..) = route_payment(&nodes[1], &vec!(&nodes[0])[..], 9_000_000);
7726
7726
7727
7727
let revoked_local_txn = get_local_commitment_txn!(nodes[1], chan.2);
0 commit comments