Skip to content

Sender cancel state#1557

Draft
arminsabouri wants to merge 3 commits into
payjoin:masterfrom
arminsabouri:sender-cancel-state
Draft

Sender cancel state#1557
arminsabouri wants to merge 3 commits into
payjoin:masterfrom
arminsabouri:sender-cancel-state

Conversation

@arminsabouri
Copy link
Copy Markdown
Collaborator

@arminsabouri arminsabouri commented May 14, 2026

Implementing @spacebear21 's idea from #1542 (comment)
for just the sender.

Recevier side is implemented here: #1558

Pull Request Checklist

Please confirm the following before requesting review:

Claude made the updates to the payjoin-cli

@arminsabouri arminsabouri force-pushed the sender-cancel-state branch 2 times, most recently from 7cf2e7c to d3dac67 Compare May 15, 2026 15:31
@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented May 15, 2026

Coverage Report for CI Build 25928742109

Coverage decreased (-0.1%) to 85.195%

Details

  • Coverage decreased (-0.1%) from the base build.
  • Patch coverage: 24 uncovered changes across 4 files (34 of 58 lines covered, 58.62%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
payjoin/src/core/send/v2/mod.rs 44 27 61.36%
payjoin-cli/src/app/v2/mod.rs 6 2 33.33%
payjoin-cli/src/app/v1.rs 2 0 0.0%
payjoin/src/core/send/v2/session.rs 3 2 66.67%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 13718
Covered Lines: 11687
Line Coverage: 85.19%
Coverage Strength: 394.47 hits per line

💛 - Coveralls

If application manually cancels the assumption is they will not attempt
to resume that session again. The session is marked closed. The cancel
type leaves the session open and
the session can only be closed once the user confirms they broadcasted
the fallback tx -- or took an equivalent action.
If a user calls fallback {session_id} we first cancel
the session then fallback, and finally persist the outcome
which should close session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants