File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -4744,7 +4744,7 @@ fn test_duplicate_payment_hash_one_failure_one_success() {
4744
4744
if node_txn. len ( ) > 2 {
4745
4745
check_spends ! ( node_txn[ 1 ] , commitment_txn[ 0 ] ) ;
4746
4746
assert_eq ! ( node_txn[ 1 ] . input. len( ) , 1 ) ;
4747
- assert_eq ! ( node_txn[ 2 ] . output. len( ) , 1 ) ;
4747
+ assert_eq ! ( node_txn[ 1 ] . output. len( ) , 1 ) ;
4748
4748
assert_eq ! ( node_txn[ 0 ] . input[ 0 ] . previous_output, node_txn[ 1 ] . input[ 0 ] . previous_output) ;
4749
4749
4750
4750
check_spends ! ( node_txn[ 2 ] , commitment_txn[ 0 ] ) ;
@@ -4760,7 +4760,8 @@ fn test_duplicate_payment_hash_one_failure_one_success() {
4760
4760
4761
4761
assert_eq ! ( node_txn[ 0 ] . input[ 0 ] . witness. last( ) . unwrap( ) . len( ) , ACCEPTED_HTLC_SCRIPT_WEIGHT ) ;
4762
4762
assert_eq ! ( node_txn[ 1 ] . input[ 0 ] . witness. last( ) . unwrap( ) . len( ) , ACCEPTED_HTLC_SCRIPT_WEIGHT ) ;
4763
- // Assign htlc_timeout_tx to the second HTLC (with value ~800 sats).
4763
+ // Assign htlc_timeout_tx to the forwarded HTLC (with value ~800 sats). The received HTLC
4764
+ // (with value 900 sats) will be claimed in the below `claim_funds` call.
4764
4765
if node_txn. len ( ) > 2 {
4765
4766
assert_eq ! ( node_txn[ 2 ] . input[ 0 ] . witness. last( ) . unwrap( ) . len( ) , ACCEPTED_HTLC_SCRIPT_WEIGHT ) ;
4766
4767
htlc_timeout_tx = if node_txn[ 2 ] . output [ 0 ] . value < 900 { node_txn[ 2 ] . clone ( ) } else { node_txn[ 0 ] . clone ( ) } ;
You can’t perform that action at this time.
0 commit comments