contractcourt: retain deadline across contest resolution - #11032
Conversation
🔴 PR Severity: CRITICAL
🔴 Critical (1 file)
🟢 Low (2 files)
AnalysisThis PR modifies To override, add a |
Forward the supplied incoming HTLC expiry from the outgoing contest resolver to its embedded timeout resolver. This keeps the deadline available when resolution transitions after the outgoing HTLC expires.
adcde6c to
5b4c506
Compare
|
Created backport PR for
Please cherry-pick the changes locally and resolve any conflicts. git fetch origin backport-11032-to-v0.20.x-branch
git worktree add --checkout .worktree/backport-11032-to-v0.20.x-branch backport-11032-to-v0.20.x-branch
cd .worktree/backport-11032-to-v0.20.x-branch
git reset --hard HEAD^
git cherry-pick -x 5b4c5067dbd3aa0714b8550511b1e05f25220b83
git push --force-with-lease |
|
Successfully created backport PR for |
…21.x-branch [v0.21.x-branch] Backport #11032: contractcourt: retain deadline across contest resolution
…20.x-branch [v0.20.x-branch] Backport #11032: contractcourt: retain deadline across contest resolution
Change Description
Outgoing contest resolvers embed the timeout resolver they transition to once
the outgoing HTLC reaches its expiry. Forward the corresponding incoming HTLC
expiry to that embedded resolver so the existing deadline remains available
after the transition.
The added test exercises the contest-to-timeout transition and checks that the
supplied deadline is retained.
Steps to Test
Pull Request Checklist
Testing
Code Style and Documentation
0.21.2release notes.