LSPS2 service: Treat replayed HTLCIntercepted events idempotently#4656
LSPS2 service: Treat replayed HTLCIntercepted events idempotently#4656tnull wants to merge 3 commits into
HTLCIntercepted events idempotently#4656Conversation
Persisting LSPS2 service state can race with replayed intercepted HTLC events after restart. Cover replaying the same intercepted HTLC after restoring peer state so duplicate queueing is caught. Co-Authored-By: HAL 9000
Replayed intercepted HTLC events should not duplicate queued payments or panic after restart. Ignore already-queued intercept IDs so persisted queues remain stable across event replay. Co-Authored-By: HAL 9000
|
I've assigned @jkczyz as a reviewer! |
686c27d to
190b6af
Compare
|
I've completed a thorough review of every hunk in this PR diff, examining:
No new issues found. The previously flagged |
Terminal JIT channel state is only useful while the forwarded channel still exists. Drop completed LSPS2 mappings once the channel is gone so persisted service state does not retain stale entries indefinitely. Co-Authored-By: HAL 9000
190b6af to
444c009
Compare
Fixes #4637.
Also: