Skip to content

Commit 26a48c5

Browse files
committed
f more test docs
1 parent 6d9668c commit 26a48c5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lightning/src/ln/functional_tests.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9317,8 +9317,13 @@ fn test_dup_htlc_second_fail_panic() {
93179317
let mut payment_event = SendEvent::from_event(events.pop().unwrap());
93189318
nodes[1].node.handle_update_add_htlc(&nodes[0].node.get_our_node_id(), &payment_event.msgs[0]);
93199319
commitment_signed_dance!(nodes[1], nodes[0], payment_event.commitment_msg, false);
9320+
// At this point, nodes[1] would notice it has too much value for the payment. It will
9321+
// assume the second is a privacy attack (no longer particularly relevant
9322+
// post-payment_secrets) and fail back the new HTLC. Previously, it'd also have failed back
9323+
// the first HTLC delivered above.
93209324
}
93219325

9326+
// Now we go fail back the first HTLC from the user end.
93229327
expect_pending_htlcs_forwardable_ignore!(nodes[1]);
93239328
nodes[1].node.process_pending_htlc_forwards();
93249329
nodes[1].node.fail_htlc_backwards(&our_payment_hash);

0 commit comments

Comments
 (0)