@@ -2325,14 +2325,7 @@ fn claim_htlc_outputs_single_tx() {
2325
2325
check_added_monitors ! ( nodes[ 0 ] , 1 ) ;
2326
2326
nodes[ 1 ] . block_notifier . block_connected ( & Block { header, txdata : vec ! [ revoked_local_txn[ 0 ] . clone( ) ] } , 200 ) ;
2327
2327
check_added_monitors ! ( nodes[ 1 ] , 1 ) ;
2328
-
2329
- // Expect pending failures, but we don't bother trying to update the channel state with them.
2330
- let events = nodes[ 0 ] . node . get_and_clear_pending_events ( ) ;
2331
- assert_eq ! ( events. len( ) , 1 ) ;
2332
- match events[ 0 ] {
2333
- Event :: PendingHTLCsForwardable { .. } => { } ,
2334
- _ => panic ! ( "Unexpected event" ) ,
2335
- } ;
2328
+ expect_pending_htlcs_forwardable_ignore ! ( nodes[ 0 ] ) ;
2336
2329
2337
2330
connect_blocks ( & nodes[ 1 ] . block_notifier , ANTI_REORG_DELAY - 1 , 200 , true , header. bitcoin_hash ( ) ) ;
2338
2331
@@ -7208,14 +7201,7 @@ fn test_bump_penalty_txn_on_revoked_htlcs() {
7208
7201
7209
7202
// Broadcast set of revoked txn on A
7210
7203
let header_128 = connect_blocks ( & nodes[ 0 ] . block_notifier , 128 , 0 , true , header. bitcoin_hash ( ) ) ;
7211
-
7212
- // Expect pending failures, but we don't bother trying to update the channel state with them.
7213
- let events = nodes[ 0 ] . node . get_and_clear_pending_events ( ) ;
7214
- assert_eq ! ( events. len( ) , 1 ) ;
7215
- match events[ 0 ] {
7216
- Event :: PendingHTLCsForwardable { .. } => { } ,
7217
- _ => panic ! ( "Unexpected event" ) ,
7218
- } ;
7204
+ expect_pending_htlcs_forwardable_ignore ! ( nodes[ 0 ] ) ;
7219
7205
7220
7206
let header_129 = BlockHeader { version : 0x20000000 , prev_blockhash : header_128, merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
7221
7207
nodes[ 0 ] . block_notifier . block_connected ( & Block { header : header_129, txdata : vec ! [ revoked_local_txn[ 0 ] . clone( ) , revoked_htlc_txn[ 0 ] . clone( ) , revoked_htlc_txn[ 1 ] . clone( ) ] } , 129 ) ;
@@ -7549,14 +7535,7 @@ fn test_bump_txn_sanitize_tracking_maps() {
7549
7535
7550
7536
// Broadcast set of revoked txn on A
7551
7537
let header_128 = connect_blocks ( & nodes[ 0 ] . block_notifier , 128 , 0 , false , Default :: default ( ) ) ;
7552
-
7553
- // Expect pending failures, but we don't bother trying to update the channel state with them.
7554
- let events = nodes[ 0 ] . node . get_and_clear_pending_events ( ) ;
7555
- assert_eq ! ( events. len( ) , 1 ) ;
7556
- match events[ 0 ] {
7557
- Event :: PendingHTLCsForwardable { .. } => { } ,
7558
- _ => panic ! ( "Unexpected event" ) ,
7559
- } ;
7538
+ expect_pending_htlcs_forwardable_ignore ! ( nodes[ 0 ] ) ;
7560
7539
7561
7540
let header_129 = BlockHeader { version : 0x20000000 , prev_blockhash : header_128, merkle_root : Default :: default ( ) , time : 42 , bits : 42 , nonce : 42 } ;
7562
7541
nodes[ 0 ] . block_notifier . block_connected ( & Block { header : header_129, txdata : vec ! [ revoked_local_txn[ 0 ] . clone( ) ] } , 129 ) ;
0 commit comments