Skip to content

Commit c5148d6

Browse files
committed
f spurious excess check
1 parent a3324cc commit c5148d6

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lightning/src/ln/payment_tests.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -506,12 +506,11 @@ fn do_retry_with_no_persist(confirm_before_reload: bool) {
506506
let as_htlc_timeout_txn = nodes[0].tx_broadcaster.txn_broadcasted.lock().unwrap().split_off(0);
507507
assert_eq!(as_htlc_timeout_txn.len(), 3);
508508
let (first_htlc_timeout_tx, second_htlc_timeout_tx) = if as_htlc_timeout_txn[0] == as_commitment_tx {
509-
(&as_htlc_timeout_txn[1], &as_htlc_timeout_txn[2])
510-
} else {
511-
assert_eq!(as_htlc_timeout_txn[2], as_commitment_tx);
512-
(&as_htlc_timeout_txn[0], &as_htlc_timeout_txn[1])
513-
};
514-
//check_spends!(as_htlc_timeout_txn[2], funding_tx);
509+
(&as_htlc_timeout_txn[1], &as_htlc_timeout_txn[2])
510+
} else {
511+
assert_eq!(as_htlc_timeout_txn[2], as_commitment_tx);
512+
(&as_htlc_timeout_txn[0], &as_htlc_timeout_txn[1])
513+
};
515514
check_spends!(first_htlc_timeout_tx, as_commitment_tx);
516515
check_spends!(second_htlc_timeout_tx, as_commitment_tx);
517516
if first_htlc_timeout_tx.input[0].previous_output == bs_htlc_claim_txn[0].input[0].previous_output {

0 commit comments

Comments
 (0)