@@ -5402,11 +5402,11 @@ fn do_test_fail_backwards_unrevoked_remote_announce(deliver_last_raa: bool, anno
5402
5402
5403
5403
let as_events = nodes[0].node.get_and_clear_pending_events();
5404
5404
assert_eq!(as_events.len(), if announce_latest { 10 } else { 6 });
5405
- let mut as_failds = new_hash_set();
5405
+ let mut as_faileds = new_hash_set();
5406
5406
let mut as_updates = 0;
5407
5407
for event in as_events.iter() {
5408
5408
if let &Event::PaymentPathFailed { ref payment_hash, ref payment_failed_permanently, ref failure, .. } = event {
5409
- assert!(as_failds .insert(*payment_hash));
5409
+ assert!(as_faileds .insert(*payment_hash));
5410
5410
if *payment_hash != payment_hash_2 {
5411
5411
assert_eq!(*payment_failed_permanently, deliver_last_raa);
5412
5412
} else {
@@ -5418,21 +5418,21 @@ fn do_test_fail_backwards_unrevoked_remote_announce(deliver_last_raa: bool, anno
5418
5418
} else if let &Event::PaymentFailed { .. } = event {
5419
5419
} else { panic!("Unexpected event"); }
5420
5420
}
5421
- assert!(as_failds .contains(&payment_hash_1));
5422
- assert!(as_failds .contains(&payment_hash_2));
5421
+ assert!(as_faileds .contains(&payment_hash_1));
5422
+ assert!(as_faileds .contains(&payment_hash_2));
5423
5423
if announce_latest {
5424
- assert!(as_failds .contains(&payment_hash_3));
5425
- assert!(as_failds .contains(&payment_hash_5));
5424
+ assert!(as_faileds .contains(&payment_hash_3));
5425
+ assert!(as_faileds .contains(&payment_hash_5));
5426
5426
}
5427
- assert!(as_failds .contains(&payment_hash_6));
5427
+ assert!(as_faileds .contains(&payment_hash_6));
5428
5428
5429
5429
let bs_events = nodes[1].node.get_and_clear_pending_events();
5430
5430
assert_eq!(bs_events.len(), if announce_latest { 8 } else { 6 });
5431
- let mut bs_failds = new_hash_set();
5431
+ let mut bs_faileds = new_hash_set();
5432
5432
let mut bs_updates = 0;
5433
5433
for event in bs_events.iter() {
5434
5434
if let &Event::PaymentPathFailed { ref payment_hash, ref payment_failed_permanently, ref failure, .. } = event {
5435
- assert!(bs_failds .insert(*payment_hash));
5435
+ assert!(bs_faileds .insert(*payment_hash));
5436
5436
if *payment_hash != payment_hash_1 && *payment_hash != payment_hash_5 {
5437
5437
assert_eq!(*payment_failed_permanently, deliver_last_raa);
5438
5438
} else {
@@ -5444,12 +5444,12 @@ fn do_test_fail_backwards_unrevoked_remote_announce(deliver_last_raa: bool, anno
5444
5444
} else if let &Event::PaymentFailed { .. } = event {
5445
5445
} else { panic!("Unexpected event"); }
5446
5446
}
5447
- assert!(bs_failds .contains(&payment_hash_1));
5448
- assert!(bs_failds .contains(&payment_hash_2));
5447
+ assert!(bs_faileds .contains(&payment_hash_1));
5448
+ assert!(bs_faileds .contains(&payment_hash_2));
5449
5449
if announce_latest {
5450
- assert!(bs_failds .contains(&payment_hash_4));
5450
+ assert!(bs_faileds .contains(&payment_hash_4));
5451
5451
}
5452
- assert!(bs_failds .contains(&payment_hash_5));
5452
+ assert!(bs_faileds .contains(&payment_hash_5));
5453
5453
5454
5454
// For each HTLC which was not failed-back by normal process (ie deliver_last_raa), we should
5455
5455
// get a NetworkUpdate. A should have gotten 4 HTLCs which were failed-back due to
0 commit comments