Skip to content

Commit 0a34845

Browse files
committed
f clarify comment
1 parent 643368d commit 0a34845

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/ln/chanmon_update_fail_tests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3107,10 +3107,10 @@ fn do_test_inverted_mon_completion_order(complete_bc_commitment_dance: bool) {
31073107
// channel, we immediately claim the HTLC on the upstream channel, before even doing a
31083108
// `commitment_signed` dance on the downstream channel. This implies that our
31093109
// `ChannelMonitorUpdate`s are generated in the right order - first we ensure we'll get our
3110-
// money, then we write the update that resolves giving money on the downstream node. This is
3111-
// safe as long as `ChannelMonitorUpdate`s complete in the order in which they are generated,
3112-
// but of course this may not be the case. For asynchronous update writes, we have to ensure
3113-
// monitor updates can block each other, preventing the inversion all together.
3110+
// money, then we write the update that resolves the downstream node claiming their money. This
3111+
// is safe as long as `ChannelMonitorUpdate`s complete in the order in which they are
3112+
// generated, but of course this may not be the case. For asynchronous update writes, we have
3113+
// to ensure monitor updates can block each other, preventing the inversion all together.
31143114
let chanmon_cfgs = create_chanmon_cfgs(3);
31153115
let node_cfgs = create_node_cfgs(3, &chanmon_cfgs);
31163116

0 commit comments

Comments
 (0)