Skip to content

Commit cfad722

Browse files
committed
f document whats up
1 parent c5148d6 commit cfad722

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lightning/src/ln/functional_tests.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,26 +1284,26 @@ fn test_duplicate_htlc_different_direction_onchain() {
12841284
let claim_txn = nodes[0].tx_broadcaster.txn_broadcasted.lock().unwrap().clone();
12851285
assert_eq!(claim_txn.len(), 8);
12861286

1287-
check_spends!(claim_txn[0], remote_txn[0]);
1287+
check_spends!(claim_txn[0], remote_txn[0]); // Immediate HTLC claim with preimage
12881288

1289-
check_spends!(claim_txn[1], chan_1.3);
1290-
check_spends!(claim_txn[2], claim_txn[1]);
1289+
check_spends!(claim_txn[1], chan_1.3); // Alternative commitment tx
1290+
check_spends!(claim_txn[2], claim_txn[1]); // HTLC spend in alternative commitment tx
12911291

12921292
let bump_tx = if claim_txn[1] == claim_txn[4] {
12931293
assert_eq!(claim_txn[1], claim_txn[4]);
12941294
assert_eq!(claim_txn[2], claim_txn[5]);
12951295

1296-
check_spends!(claim_txn[7], claim_txn[1]);
1296+
check_spends!(claim_txn[7], claim_txn[1]); // HTLC timeout on alternative commitment tx
12971297

1298-
check_spends!(claim_txn[3], remote_txn[0]);
1298+
check_spends!(claim_txn[3], remote_txn[0]); // HTLC timeout on broadcasted commitment tx
12991299
&claim_txn[3]
13001300
} else {
13011301
assert_eq!(claim_txn[1], claim_txn[3]);
13021302
assert_eq!(claim_txn[2], claim_txn[4]);
13031303

1304-
check_spends!(claim_txn[5], claim_txn[1]);
1304+
check_spends!(claim_txn[5], claim_txn[1]); // HTLC timeout on alternative commitment tx
13051305

1306-
check_spends!(claim_txn[7], remote_txn[0]);
1306+
check_spends!(claim_txn[7], remote_txn[0]); // HTLC timeout on broadcasted commitment tx
13071307

13081308
&claim_txn[7]
13091309
};

0 commit comments

Comments
 (0)