Skip to content

Commit f5be6b4

Browse files
committed
f fix comment
1 parent 03b5933 commit f5be6b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/ln/payment_tests.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2796,7 +2796,8 @@ fn do_no_missing_sent_on_midpoint_reload(persist_manager_with_payment: bool) {
27962796
// the double-claim that would otherwise appear at the end of this test.
27972797

27982798
// Ensure that, even after some time, if we restart we still include *something* in the current
2799-
// `ChannelManager` which prevents a `PaymentFailed` when we see the HTLC again on-chain later.
2799+
// `ChannelManager` which prevents a `PaymentFailed` when we restart even if pending resolved
2800+
// payments have since been timed out thanks to `IDEMPOTENCY_TIMEOUT_TICKS`.
28002801
// A naive implementation of the fix here would wipe the pending payments set, causing a
28012802
// failure event when we restart.
28022803
for _ in 0..(IDEMPOTENCY_TIMEOUT_TICKS * 2) { nodes[0].node.timer_tick_occurred(); }

0 commit comments

Comments
 (0)