@@ -3102,7 +3102,7 @@ fn test_blocked_chan_preimage_release() {
3102
3102
expect_payment_sent ( & nodes[ 2 ] , payment_preimage_2, None , true , true ) ;
3103
3103
}
3104
3104
3105
- fn do_test_inverted_mon_completion_order ( complete_bc_commitment_dance : bool ) {
3105
+ fn do_test_inverted_mon_completion_order ( with_latest_manager : bool , complete_bc_commitment_dance : bool ) {
3106
3106
// When we forward a payment and receive an `update_fulfill_htlc` message from the downstream
3107
3107
// channel, we immediately claim the HTLC on the upstream channel, before even doing a
3108
3108
// `commitment_signed` dance on the downstream channel. This implies that our
@@ -3130,6 +3130,10 @@ fn do_test_inverted_mon_completion_order(complete_bc_commitment_dance: bool) {
3130
3130
let ( payment_preimage, payment_hash, _) = route_payment ( & nodes[ 0 ] , & [ & nodes[ 1 ] , & nodes[ 2 ] ] , 100_000 ) ;
3131
3131
3132
3132
let mon_ab = get_monitor ! ( nodes[ 1 ] , chan_id_ab) . encode ( ) ;
3133
+ let mut manager_b = Vec :: new ( ) ;
3134
+ if !with_latest_manager {
3135
+ manager_b = nodes[ 1 ] . node . encode ( ) ;
3136
+ }
3133
3137
3134
3138
nodes[ 2 ] . node . claim_funds ( payment_preimage) ;
3135
3139
check_added_monitors ( & nodes[ 2 ] , 1 ) ;
@@ -3166,63 +3170,261 @@ fn do_test_inverted_mon_completion_order(complete_bc_commitment_dance: bool) {
3166
3170
}
3167
3171
3168
3172
// Now reload node B
3169
- let manager_b = nodes[ 1 ] . node . encode ( ) ;
3173
+ if with_latest_manager {
3174
+ manager_b = nodes[ 1 ] . node . encode ( ) ;
3175
+ }
3170
3176
3171
3177
let mon_bc = get_monitor ! ( nodes[ 1 ] , chan_id_bc) . encode ( ) ;
3172
3178
reload_node ! ( nodes[ 1 ] , & manager_b, & [ & mon_ab, & mon_bc] , persister, new_chain_monitor, nodes_1_deserialized) ;
3173
3179
3174
3180
nodes[ 0 ] . node . peer_disconnected ( & nodes[ 1 ] . node . get_our_node_id ( ) ) ;
3175
3181
nodes[ 2 ] . node . peer_disconnected ( & nodes[ 1 ] . node . get_our_node_id ( ) ) ;
3176
3182
3177
- // If we used the latest ChannelManager to reload from, we should have both channels still
3178
- // live. The B <-> C channel's final RAA ChannelMonitorUpdate must still be blocked as
3179
- // before - the ChannelMonitorUpdate for the A <-> B channel hasn't completed.
3180
- // When we call `timer_tick_occurred` we will get that monitor update back, which we'll
3181
- // complete after reconnecting to our peers.
3182
- persister. set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
3183
- nodes[ 1 ] . node . timer_tick_occurred ( ) ;
3184
- check_added_monitors ( & nodes[ 1 ] , 1 ) ;
3185
- assert ! ( nodes[ 1 ] . node. get_and_clear_pending_msg_events( ) . is_empty( ) ) ;
3183
+ if with_latest_manager {
3184
+ // If we used the latest ChannelManager to reload from, we should have both channels still
3185
+ // live. The B <-> C channel's final RAA ChannelMonitorUpdate must still be blocked as
3186
+ // before - the ChannelMonitorUpdate for the A <-> B channel hasn't completed.
3187
+ // When we call `timer_tick_occurred` we will get that monitor update back, which we'll
3188
+ // complete after reconnecting to our peers.
3189
+ persister. set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
3190
+ nodes[ 1 ] . node . timer_tick_occurred ( ) ;
3191
+ check_added_monitors ( & nodes[ 1 ] , 1 ) ;
3192
+ assert ! ( nodes[ 1 ] . node. get_and_clear_pending_msg_events( ) . is_empty( ) ) ;
3186
3193
3187
- // Now reconnect B to both A and C. If the B <-> C commitment signed dance wasn't run to
3188
- // the end go ahead and do that, though the
3189
- // `pending_responding_commitment_signed_dup_monitor` in `reconnect_args` indicates that we
3190
- // expect to *not* receive the final RAA ChannelMonitorUpdate.
3191
- if complete_bc_commitment_dance {
3192
- reconnect_nodes ( ReconnectArgs :: new ( & nodes[ 1 ] , & nodes[ 2 ] ) ) ;
3194
+ // Now reconnect B to both A and C. If the B <-> C commitment signed dance wasn't run to
3195
+ // the end go ahead and do that, though the -2 in `reconnect_nodes` indicates that we
3196
+ // expect to *not* receive the final RAA ChannelMonitorUpdate.
3197
+ if complete_bc_commitment_dance {
3198
+ reconnect_nodes ( ReconnectArgs :: new ( & nodes[ 1 ] , & nodes[ 2 ] ) ) ;
3199
+ } else {
3200
+ let mut reconnect_args = ReconnectArgs :: new ( & nodes[ 1 ] , & nodes[ 2 ] ) ;
3201
+ reconnect_args. pending_responding_commitment_signed . 1 = true ;
3202
+ reconnect_args. pending_responding_commitment_signed_dup_monitor . 1 = true ;
3203
+ reconnect_args. pending_raa = ( false , true ) ;
3204
+ reconnect_nodes ( reconnect_args) ;
3205
+ }
3206
+
3207
+ reconnect_nodes ( ReconnectArgs :: new ( & nodes[ 0 ] , & nodes[ 1 ] ) ) ;
3208
+
3209
+ // (Finally) complete the A <-> B ChannelMonitorUpdate, ensuring the preimage is durably on
3210
+ // disk in the proper ChannelMonitor, unblocking the B <-> C ChannelMonitor updating
3211
+ // process.
3212
+ let ( outpoint, _, ab_update_id) = nodes[ 1 ] . chain_monitor . latest_monitor_update_id . lock ( ) . unwrap ( ) . get ( & chan_id_ab) . unwrap ( ) . clone ( ) ;
3213
+ nodes[ 1 ] . chain_monitor . chain_monitor . channel_monitor_updated ( outpoint, ab_update_id) . unwrap ( ) ;
3214
+
3215
+ // When we fetch B's HTLC update messages next (now that the ChannelMonitorUpdate has
3216
+ // completed), it will also release the final RAA ChannelMonitorUpdate on the B <-> C
3217
+ // channel.
3193
3218
} else {
3194
- let mut reconnect_args = ReconnectArgs :: new ( & nodes[ 1 ] , & nodes[ 2 ] ) ;
3195
- reconnect_args. pending_responding_commitment_signed . 1 = true ;
3196
- reconnect_args. pending_responding_commitment_signed_dup_monitor . 1 = true ;
3197
- reconnect_args. pending_raa = ( false , true ) ;
3198
- reconnect_nodes ( reconnect_args) ;
3199
- }
3219
+ // If the ChannelManager used in the reload was stale, check that the B <-> C channel was
3220
+ // closed.
3221
+ //
3222
+ // Note that this will also process the ChannelMonitorUpdates which were queued up when we
3223
+ // reloaded the ChannelManager. This will re-emit the A<->B preimage as well as the B<->C
3224
+ // force-closure ChannelMonitorUpdate. Once the A<->B preimage update completes, the claim
3225
+ // commitment update will be allowed to go out.
3226
+ check_added_monitors ( & nodes[ 1 ] , 0 ) ;
3227
+ persister. set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
3228
+ persister. set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
3229
+ check_closed_event ( & nodes[ 1 ] , 1 , ClosureReason :: OutdatedChannelManager , false , & [ nodes[ 2 ] . node . get_our_node_id ( ) ] , 100_000 ) ;
3230
+ check_added_monitors ( & nodes[ 1 ] , 2 ) ;
3231
+
3232
+ nodes[ 1 ] . node . timer_tick_occurred ( ) ;
3233
+ check_added_monitors ( & nodes[ 1 ] , 0 ) ;
3200
3234
3201
- reconnect_nodes ( ReconnectArgs :: new ( & nodes[ 0 ] , & nodes[ 1 ] ) ) ;
3235
+ // Don't bother to reconnect B to C - that channel has been closed. We don't need to
3236
+ // exchange any messages here even though there's a pending commitment update because the
3237
+ // ChannelMonitorUpdate hasn't yet completed.
3238
+ reconnect_nodes ( ReconnectArgs :: new ( & nodes[ 0 ] , & nodes[ 1 ] ) ) ;
3202
3239
3203
- // (Finally) complete the A <-> B ChannelMonitorUpdate, ensuring the preimage is durably on
3204
- // disk in the proper ChannelMonitor, unblocking the B <-> C ChannelMonitor updating
3205
- // process.
3206
- let ( outpoint, _, ab_update_id) = nodes[ 1 ] . chain_monitor . latest_monitor_update_id . lock ( ) . unwrap ( ) . get ( & chan_id_ab) . unwrap ( ) . clone ( ) ;
3207
- nodes[ 1 ] . chain_monitor . chain_monitor . channel_monitor_updated ( outpoint, ab_update_id) . unwrap ( ) ;
3240
+ let ( outpoint, _, ab_update_id) = nodes[ 1 ] . chain_monitor . latest_monitor_update_id . lock ( ) . unwrap ( ) . get ( & chan_id_ab) . unwrap ( ) . clone ( ) ;
3241
+ nodes[ 1 ] . chain_monitor . chain_monitor . channel_monitor_updated ( outpoint, ab_update_id) . unwrap ( ) ;
3242
+
3243
+ // The ChannelMonitorUpdate which was completed prior to the reconnect only contained the
3244
+ // preimage (as it was a replay of the original ChannelMonitorUpdate from before we
3245
+ // restarted). When we go to fetch the commitment transaction updates we'll poll the
3246
+ // ChannelMonitorUpdate completion, then generate (and complete) a new ChannelMonitorUpdate
3247
+ // with the actual commitment transaction, which will allow us to fulfill the HTLC with
3248
+ // node A.
3249
+ }
3208
3250
3209
- // When we fetch B's HTLC update messages here (now that the ChannelMonitorUpdate has
3210
- // completed), it will also release the final RAA ChannelMonitorUpdate on the B <-> C
3211
- // channel.
3212
3251
let bs_updates = get_htlc_update_msgs ( & nodes[ 1 ] , & nodes[ 0 ] . node . get_our_node_id ( ) ) ;
3213
3252
check_added_monitors ( & nodes[ 1 ] , 1 ) ;
3214
3253
3215
3254
nodes[ 0 ] . node . handle_update_fulfill_htlc ( & nodes[ 1 ] . node . get_our_node_id ( ) , & bs_updates. update_fulfill_htlcs [ 0 ] ) ;
3216
3255
do_commitment_signed_dance ( & nodes[ 0 ] , & nodes[ 1 ] , & bs_updates. commitment_signed , false , false ) ;
3217
3256
3218
- expect_payment_forwarded ! ( nodes[ 1 ] , & nodes[ 0 ] , & nodes[ 2 ] , Some ( 1_000 ) , false , false ) ;
3257
+ expect_payment_forwarded ! ( nodes[ 1 ] , & nodes[ 0 ] , & nodes[ 2 ] , Some ( 1_000 ) , false , !with_latest_manager ) ;
3219
3258
3220
3259
// Finally, check that the payment was, ultimately, seen as sent by node A.
3221
3260
expect_payment_sent ( & nodes[ 0 ] , payment_preimage, None , true , true ) ;
3222
3261
}
3223
3262
3224
3263
#[ test]
3225
3264
fn test_inverted_mon_completion_order ( ) {
3226
- do_test_inverted_mon_completion_order ( true ) ;
3227
- do_test_inverted_mon_completion_order ( false ) ;
3265
+ do_test_inverted_mon_completion_order ( true , true ) ;
3266
+ do_test_inverted_mon_completion_order ( true , false ) ;
3267
+ do_test_inverted_mon_completion_order ( false , true ) ;
3268
+ do_test_inverted_mon_completion_order ( false , false ) ;
3269
+ }
3270
+
3271
+ fn do_test_durable_preimages_on_closed_channel ( close_chans_before_reload : bool , close_only_a : bool , hold_post_reload_mon_update : bool ) {
3272
+ // Test that we can apply a `ChannelMonitorUpdate` with a payment preimage even if the channel
3273
+ // is force-closed between when we generate the update on reload and when we go to handle the
3274
+ // update or prior to generating the update at all.
3275
+
3276
+ if !close_chans_before_reload && close_only_a {
3277
+ // If we're not closing, it makes no sense to "only close A"
3278
+ panic ! ( ) ;
3279
+ }
3280
+
3281
+ let chanmon_cfgs = create_chanmon_cfgs ( 3 ) ;
3282
+ let node_cfgs = create_node_cfgs ( 3 , & chanmon_cfgs) ;
3283
+
3284
+ let persister;
3285
+ let new_chain_monitor;
3286
+ let nodes_1_deserialized;
3287
+
3288
+ let node_chanmgrs = create_node_chanmgrs ( 3 , & node_cfgs, & [ None , None , None ] ) ;
3289
+ let mut nodes = create_network ( 3 , & node_cfgs, & node_chanmgrs) ;
3290
+
3291
+ let chan_id_ab = create_announced_chan_between_nodes ( & nodes, 0 , 1 ) . 2 ;
3292
+ let chan_id_bc = create_announced_chan_between_nodes ( & nodes, 1 , 2 ) . 2 ;
3293
+
3294
+ // Route a payment from A, through B, to C, then claim it on C. Once we pass B the
3295
+ // `update_fulfill_htlc` we have a monitor update for both of B's channels. We complete the one
3296
+ // on the B<->C channel but leave the A<->B monitor update pending, then reload B.
3297
+ let ( payment_preimage, payment_hash, _) = route_payment ( & nodes[ 0 ] , & [ & nodes[ 1 ] , & nodes[ 2 ] ] , 1_000_000 ) ;
3298
+
3299
+ let mon_ab = get_monitor ! ( nodes[ 1 ] , chan_id_ab) . encode ( ) ;
3300
+
3301
+ nodes[ 2 ] . node . claim_funds ( payment_preimage) ;
3302
+ check_added_monitors ( & nodes[ 2 ] , 1 ) ;
3303
+ expect_payment_claimed ! ( nodes[ 2 ] , payment_hash, 1_000_000 ) ;
3304
+
3305
+ chanmon_cfgs[ 1 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
3306
+ let cs_updates = get_htlc_update_msgs ( & nodes[ 2 ] , & nodes[ 1 ] . node . get_our_node_id ( ) ) ;
3307
+ nodes[ 1 ] . node . handle_update_fulfill_htlc ( & nodes[ 2 ] . node . get_our_node_id ( ) , & cs_updates. update_fulfill_htlcs [ 0 ] ) ;
3308
+
3309
+ // B generates a new monitor update for the A <-> B channel, but doesn't send the new messages
3310
+ // for it since the monitor update is marked in-progress.
3311
+ check_added_monitors ( & nodes[ 1 ] , 1 ) ;
3312
+ assert ! ( nodes[ 1 ] . node. get_and_clear_pending_msg_events( ) . is_empty( ) ) ;
3313
+
3314
+ // Now step the Commitment Signed Dance between B and C forward a bit, ensuring we won't get
3315
+ // the preimage when the nodes reconnect, at which point we have to ensure we get it from the
3316
+ // ChannelMonitor.
3317
+ nodes[ 1 ] . node . handle_commitment_signed ( & nodes[ 2 ] . node . get_our_node_id ( ) , & cs_updates. commitment_signed ) ;
3318
+ check_added_monitors ( & nodes[ 1 ] , 1 ) ;
3319
+ let _ = get_revoke_commit_msgs ! ( nodes[ 1 ] , nodes[ 2 ] . node. get_our_node_id( ) ) ;
3320
+
3321
+ let mon_bc = get_monitor ! ( nodes[ 1 ] , chan_id_bc) . encode ( ) ;
3322
+
3323
+ if close_chans_before_reload {
3324
+ if !close_only_a {
3325
+ chanmon_cfgs[ 1 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
3326
+ nodes[ 1 ] . node . force_close_broadcasting_latest_txn ( & chan_id_bc, & nodes[ 2 ] . node . get_our_node_id ( ) ) . unwrap ( ) ;
3327
+ check_closed_broadcast ( & nodes[ 1 ] , 1 , true ) ;
3328
+ check_closed_event ( & nodes[ 1 ] , 1 , ClosureReason :: HolderForceClosed , false , & [ nodes[ 2 ] . node . get_our_node_id ( ) ] , 100000 ) ;
3329
+ }
3330
+
3331
+ chanmon_cfgs[ 1 ] . persister . set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
3332
+ nodes[ 1 ] . node . force_close_broadcasting_latest_txn ( & chan_id_ab, & nodes[ 0 ] . node . get_our_node_id ( ) ) . unwrap ( ) ;
3333
+ check_closed_broadcast ( & nodes[ 1 ] , 1 , true ) ;
3334
+ check_closed_event ( & nodes[ 1 ] , 1 , ClosureReason :: HolderForceClosed , false , & [ nodes[ 0 ] . node . get_our_node_id ( ) ] , 100000 ) ;
3335
+ }
3336
+
3337
+ // Now reload node B
3338
+ let manager_b = nodes[ 1 ] . node . encode ( ) ;
3339
+ reload_node ! ( nodes[ 1 ] , & manager_b, & [ & mon_ab, & mon_bc] , persister, new_chain_monitor, nodes_1_deserialized) ;
3340
+
3341
+ nodes[ 0 ] . node . peer_disconnected ( & nodes[ 1 ] . node . get_our_node_id ( ) ) ;
3342
+ nodes[ 2 ] . node . peer_disconnected ( & nodes[ 1 ] . node . get_our_node_id ( ) ) ;
3343
+
3344
+ if close_chans_before_reload {
3345
+ // If the channels were already closed, B will rebroadcast its closing transactions here.
3346
+ let bs_close_txn = nodes[ 1 ] . tx_broadcaster . txn_broadcasted . lock ( ) . unwrap ( ) . split_off ( 0 ) ;
3347
+ if close_only_a {
3348
+ assert_eq ! ( bs_close_txn. len( ) , 2 ) ;
3349
+ } else {
3350
+ assert_eq ! ( bs_close_txn. len( ) , 3 ) ;
3351
+ }
3352
+ }
3353
+
3354
+ nodes[ 0 ] . node . force_close_broadcasting_latest_txn ( & chan_id_ab, & nodes[ 1 ] . node . get_our_node_id ( ) ) . unwrap ( ) ;
3355
+ check_closed_event ( & nodes[ 0 ] , 1 , ClosureReason :: HolderForceClosed , false , & [ nodes[ 1 ] . node . get_our_node_id ( ) ] , 100000 ) ;
3356
+ let as_closing_tx = nodes[ 0 ] . tx_broadcaster . txn_broadcasted . lock ( ) . unwrap ( ) . split_off ( 0 ) ;
3357
+ assert_eq ! ( as_closing_tx. len( ) , 1 ) ;
3358
+
3359
+ // In order to give B A's closing transaction without processing background events first, use
3360
+ // the _without_consistency_checks utility method. This is similar to connecting blocks during
3361
+ // startup prior to the node being full initialized.
3362
+ mine_transaction_without_consistency_checks ( & nodes[ 1 ] , & as_closing_tx[ 0 ] ) ;
3363
+
3364
+ // After a timer tick a payment preimage ChannelMonitorUpdate is applied to the A<->B
3365
+ // ChannelMonitor (possible twice), even though the channel has since been closed.
3366
+ check_added_monitors ( & nodes[ 1 ] , 0 ) ;
3367
+ let mons_added = if close_chans_before_reload { if !close_only_a { 4 } else { 3 } } else { 2 } ;
3368
+ if hold_post_reload_mon_update {
3369
+ for _ in 0 ..mons_added {
3370
+ persister. set_update_ret ( ChannelMonitorUpdateStatus :: InProgress ) ;
3371
+ }
3372
+ }
3373
+ nodes[ 1 ] . node . timer_tick_occurred ( ) ;
3374
+ check_added_monitors ( & nodes[ 1 ] , mons_added) ;
3375
+
3376
+ // Finally, check that B created a payment preimage transaction and close out the payment.
3377
+ let bs_txn = nodes[ 1 ] . tx_broadcaster . txn_broadcasted . lock ( ) . unwrap ( ) . split_off ( 0 ) ;
3378
+ assert_eq ! ( bs_txn. len( ) , if close_chans_before_reload && !close_only_a { 2 } else { 1 } ) ;
3379
+ let bs_preimage_tx = & bs_txn[ 0 ] ;
3380
+ check_spends ! ( bs_preimage_tx, as_closing_tx[ 0 ] ) ;
3381
+
3382
+ if !close_chans_before_reload {
3383
+ check_closed_broadcast ( & nodes[ 1 ] , 1 , true ) ;
3384
+ check_closed_event ( & nodes[ 1 ] , 1 , ClosureReason :: CommitmentTxConfirmed , false , & [ nodes[ 0 ] . node . get_our_node_id ( ) ] , 100000 ) ;
3385
+ } else {
3386
+ // While we forwarded the payment a while ago, we don't want to process events too early or
3387
+ // we'll run background tasks we wanted to test individually.
3388
+ expect_payment_forwarded ! ( nodes[ 1 ] , nodes[ 0 ] , nodes[ 2 ] , None , true , !close_only_a) ;
3389
+ }
3390
+
3391
+ mine_transactions ( & nodes[ 0 ] , & [ & as_closing_tx[ 0 ] , bs_preimage_tx] ) ;
3392
+ check_closed_broadcast ( & nodes[ 0 ] , 1 , true ) ;
3393
+ expect_payment_sent ( & nodes[ 0 ] , payment_preimage, None , true , true ) ;
3394
+
3395
+ if !close_chans_before_reload || close_only_a {
3396
+ // Make sure the B<->C channel is still alive and well by sending a payment over it.
3397
+ let mut reconnect_args = ReconnectArgs :: new ( & nodes[ 1 ] , & nodes[ 2 ] ) ;
3398
+ reconnect_args. pending_responding_commitment_signed . 1 = true ;
3399
+ if !close_chans_before_reload {
3400
+ // TODO: If the A<->B channel was closed before we reloaded, the `ChannelManager`
3401
+ // will consider the forwareded payment complete and allow the B<->C
3402
+ // `ChannelMonitorUpdate` to complete, wiping the payment preimage. This should not
3403
+ // be allowed, and needs fixing.
3404
+ reconnect_args. pending_responding_commitment_signed_dup_monitor . 1 = true ;
3405
+ }
3406
+ reconnect_args. pending_raa . 1 = true ;
3407
+
3408
+ reconnect_nodes ( reconnect_args) ;
3409
+ let ( outpoint, ab_update_id, _) = nodes[ 1 ] . chain_monitor . latest_monitor_update_id . lock ( ) . unwrap ( ) . get ( & chan_id_ab) . unwrap ( ) . clone ( ) ;
3410
+ nodes[ 1 ] . chain_monitor . chain_monitor . force_channel_monitor_updated ( outpoint, ab_update_id) ;
3411
+ expect_payment_forwarded ! ( nodes[ 1 ] , nodes[ 0 ] , nodes[ 2 ] , Some ( 1000 ) , true , false ) ;
3412
+ if !close_chans_before_reload {
3413
+ // Once we call `process_pending_events` the final `ChannelMonitor` for the B<->C
3414
+ // channel will fly, removing the payment preimage from it.
3415
+ check_added_monitors ( & nodes[ 1 ] , 1 ) ;
3416
+ }
3417
+ assert ! ( nodes[ 1 ] . node. get_and_clear_pending_events( ) . is_empty( ) ) ;
3418
+ send_payment ( & nodes[ 1 ] , & [ & nodes[ 2 ] ] , 100_000 ) ;
3419
+ }
3420
+ }
3421
+
3422
+ #[ test]
3423
+ fn test_durable_preimages_on_closed_channel ( ) {
3424
+ do_test_durable_preimages_on_closed_channel ( true , true , true ) ;
3425
+ do_test_durable_preimages_on_closed_channel ( true , true , false ) ;
3426
+ do_test_durable_preimages_on_closed_channel ( true , false , true ) ;
3427
+ do_test_durable_preimages_on_closed_channel ( true , false , false ) ;
3428
+ do_test_durable_preimages_on_closed_channel ( false , false , true ) ;
3429
+ do_test_durable_preimages_on_closed_channel ( false , false , false ) ;
3228
3430
}
0 commit comments