Skip to content

Commit b3fd442

Browse files
committed
f add test comment
1 parent 6dba566 commit b3fd442

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
@@ -2795,6 +2795,10 @@ fn do_no_missing_sent_on_midpoint_reload(persist_manager_with_payment: bool) {
27952795
// Note that we don't get a PaymentPathSuccessful here as we leave the HTLC pending to avoid
27962796
// the double-claim that would otherwise appear at the end of this test.
27972797

2798+
// 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.
2800+
// A naive implementation of the fix here would wipe the pending payments set, causing a
2801+
// failure event when we restart.
27982802
for _ in 0..(IDEMPOTENCY_TIMEOUT_TICKS * 2) { nodes[0].node.timer_tick_occurred(); }
27992803

28002804
let chan_0_monitor_serialized = get_monitor!(nodes[0], chan_id).encode();

0 commit comments

Comments
 (0)