Skip to content

Commit d2d150d

Browse files
committed
f comment on bool
1 parent 529bd33 commit d2d150d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lightning/src/ln/payment_tests.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,10 @@ fn do_retry_with_no_persist(confirm_before_reload: bool) {
281281
// In order to do so when the ChannelManager isn't immediately persisted (which is normal - its
282282
// always persisted asynchronously), the ChannelManager has to reload some payment data from
283283
// ChannelMonitor(s) in some cases. This tests that reloading.
284+
//
285+
// `confirm_before_reload` confirms the channel-closing commitment transaction on-chain prior
286+
// to reloading the ChannelManager, increasing test coverage in ChannelMonitor HTLC tracking
287+
// which has separate codepaths for "commitment transaction already confirmed" and not.
284288
let chanmon_cfgs = create_chanmon_cfgs(3);
285289
let node_cfgs = create_node_cfgs(3, &chanmon_cfgs);
286290
let node_chanmgrs = create_node_chanmgrs(3, &node_cfgs, &[None, None, None]);

0 commit comments

Comments
 (0)