Skip to content

Commit 28dcf35

Browse files
committed
f One more length assertion
1 parent 5272201 commit 28dcf35

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/ln/onion_route_tests.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2627,6 +2627,7 @@ fn test_phantom_final_incorrect_cltv_expiry() {
26272627
nodes[1].node.process_pending_update_add_htlcs();
26282628

26292629
// Modify the payload so the phantom hop's HMAC is bogus.
2630+
assert_eq!(nodes[1].node.forward_htlcs.lock().unwrap().len(), 1);
26302631
if let Some((_, pending_forwards)) =
26312632
nodes[1].node.forward_htlcs.lock().unwrap().iter_mut().next()
26322633
{

0 commit comments

Comments
 (0)