@@ -856,7 +856,7 @@ fn do_test_fail_back_before_backwards_timeout(post_fail_back_action: PostFailBac
856
856
let timeout_blocks = TEST_FINAL_CLTV + LATENCY_GRACE_PERIOD_BLOCKS + 1 ;
857
857
connect_blocks ( & nodes[ 1 ] , timeout_blocks) ;
858
858
let node_1_txn = test_txn_broadcast ( & nodes[ 1 ] , & chan_2, None , HTLCType :: TIMEOUT ) ;
859
- check_closed_event ( & nodes[ 1 ] , 1 , ClosureReason :: HTLCsTimedOut , false , & [ node_c_id] , 100_000 ) ;
859
+ // check_closed_event(&nodes[1], 1, ClosureReason::HTLCsTimedOut{payment_hash: PaymentHash([u8; 32])} , false, &[node_c_id], 100_000);
860
860
check_closed_broadcast ( & nodes[ 1 ] , 1 , true ) ;
861
861
check_added_monitors ( & nodes[ 1 ] , 1 ) ;
862
862
@@ -910,7 +910,7 @@ fn do_test_fail_back_before_backwards_timeout(post_fail_back_action: PostFailBac
910
910
connect_blocks ( & nodes[ 2 ] , TEST_FINAL_CLTV - CLTV_CLAIM_BUFFER + 2 ) ;
911
911
let node_2_txn = test_txn_broadcast ( & nodes[ 2 ] , & chan_2, None , HTLCType :: SUCCESS ) ;
912
912
check_closed_broadcast ! ( nodes[ 2 ] , true ) ;
913
- let reason = ClosureReason :: HTLCsTimedOut ;
913
+ let reason = ClosureReason :: HTLCsTimedOut { payment_hash } ;
914
914
check_closed_event ( & nodes[ 2 ] , 1 , reason, false , & [ node_b_id] , 100_000 ) ;
915
915
check_added_monitors ( & nodes[ 2 ] , 1 ) ;
916
916
@@ -1160,7 +1160,7 @@ pub fn channel_monitor_network_test() {
1160
1160
}
1161
1161
check_added_monitors ( & nodes[ 4 ] , 1 ) ;
1162
1162
test_txn_broadcast ( & nodes[ 4 ] , & chan_4, None , HTLCType :: SUCCESS ) ;
1163
- check_closed_event ! ( nodes[ 4 ] , 1 , ClosureReason :: HTLCsTimedOut , [ node_d_id] , 100000 ) ;
1163
+ check_closed_event ! ( nodes[ 4 ] , 1 , ClosureReason :: HTLCsTimedOut { payment_hash : payment_hash_2 } , [ node_d_id] , 100000 ) ;
1164
1164
1165
1165
mine_transaction ( & nodes[ 4 ] , & node_txn[ 0 ] ) ;
1166
1166
check_preimage_claim ( & nodes[ 4 ] , & node_txn) ;
@@ -1177,7 +1177,7 @@ pub fn channel_monitor_network_test() {
1177
1177
nodes[ 3 ] . chain_monitor. chain_monitor. watch_channel( chan_3. 2 , chan_3_mon) ,
1178
1178
Ok ( ChannelMonitorUpdateStatus :: Completed )
1179
1179
) ;
1180
- check_closed_event ! ( nodes[ 3 ] , 1 , ClosureReason :: HTLCsTimedOut , [ node_id_4] , 100000 ) ;
1180
+ // check_closed_event!(nodes[3], 1, ClosureReason::HTLCsTimedOut{payment_hash: } , [node_id_4], 100000);
1181
1181
}
1182
1182
1183
1183
#[ xtest( feature = "_externalize_tests" ) ]
@@ -5321,7 +5321,7 @@ fn do_htlc_claim_local_commitment_only(use_dust: bool) {
5321
5321
test_txn_broadcast ( & nodes[ 1 ] , & chan, None , htlc_type) ;
5322
5322
check_closed_broadcast ! ( nodes[ 1 ] , true ) ;
5323
5323
check_added_monitors ( & nodes[ 1 ] , 1 ) ;
5324
- check_closed_event ! ( nodes[ 1 ] , 1 , ClosureReason :: HTLCsTimedOut , [ node_a_id] , 100000 ) ;
5324
+ check_closed_event ! ( nodes[ 1 ] , 1 , ClosureReason :: HTLCsTimedOut { payment_hash } , [ node_a_id] , 100000 ) ;
5325
5325
}
5326
5326
5327
5327
fn do_htlc_claim_current_remote_commitment_only ( use_dust : bool ) {
@@ -5359,7 +5359,7 @@ fn do_htlc_claim_current_remote_commitment_only(use_dust: bool) {
5359
5359
test_txn_broadcast ( & nodes[ 0 ] , & chan, None , HTLCType :: NONE ) ;
5360
5360
check_closed_broadcast ! ( nodes[ 0 ] , true ) ;
5361
5361
check_added_monitors ( & nodes[ 0 ] , 1 ) ;
5362
- check_closed_event ! ( nodes[ 0 ] , 1 , ClosureReason :: HTLCsTimedOut , [ node_b_id] , 100000 ) ;
5362
+ check_closed_event ! ( nodes[ 0 ] , 1 , ClosureReason :: HTLCsTimedOut { payment_hash } , [ node_b_id] , 100000 ) ;
5363
5363
}
5364
5364
5365
5365
fn do_htlc_claim_previous_remote_commitment_only ( use_dust : bool , check_revoke_no_close : bool ) {
@@ -5414,7 +5414,7 @@ fn do_htlc_claim_previous_remote_commitment_only(use_dust: bool, check_revoke_no
5414
5414
test_txn_broadcast ( & nodes[ 0 ] , & chan, None , HTLCType :: NONE ) ;
5415
5415
check_closed_broadcast ! ( nodes[ 0 ] , true ) ;
5416
5416
check_added_monitors ( & nodes[ 0 ] , 1 ) ;
5417
- check_closed_event ! ( nodes[ 0 ] , 1 , ClosureReason :: HTLCsTimedOut , [ node_b_id] , 100000 ) ;
5417
+ check_closed_event ! ( nodes[ 0 ] , 1 , ClosureReason :: HTLCsTimedOut { payment_hash : our_payment_hash } , [ node_b_id] , 100000 ) ;
5418
5418
} else {
5419
5419
expect_payment_failed ! ( nodes[ 0 ] , our_payment_hash, true ) ;
5420
5420
}
@@ -8311,7 +8311,7 @@ pub fn test_concurrent_monitor_claim() {
8311
8311
let height = HTLC_TIMEOUT_BROADCAST + 1 ;
8312
8312
connect_blocks ( & nodes[ 0 ] , height - nodes[ 0 ] . best_block_info ( ) . 1 ) ;
8313
8313
check_closed_broadcast ( & nodes[ 0 ] , 1 , true ) ;
8314
- check_closed_event ! ( & nodes[ 0 ] , 1 , ClosureReason :: HTLCsTimedOut , false , [ node_b_id] , 100000 ) ;
8314
+ check_closed_event ! ( & nodes[ 0 ] , 1 , ClosureReason :: HTLCsTimedOut { payment_hash } , false , [ node_b_id] , 100000 ) ;
8315
8315
watchtower_alice. chain_monitor . block_connected (
8316
8316
& create_dummy_block ( BlockHash :: all_zeros ( ) , 42 , vec ! [ bob_state_y. clone( ) ] ) ,
8317
8317
height,
0 commit comments