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