File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -2795,6 +2795,10 @@ fn do_no_missing_sent_on_midpoint_reload(persist_manager_with_payment: bool) {
2795
2795
// Note that we don't get a PaymentPathSuccessful here as we leave the HTLC pending to avoid
2796
2796
// the double-claim that would otherwise appear at the end of this test.
2797
2797
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.
2798
2802
for _ in 0 ..( IDEMPOTENCY_TIMEOUT_TICKS * 2 ) { nodes[ 0 ] . node . timer_tick_occurred ( ) ; }
2799
2803
2800
2804
let chan_0_monitor_serialized = get_monitor ! ( nodes[ 0 ] , chan_id) . encode ( ) ;
You can’t perform that action at this time.
0 commit comments