• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

payjoin / rust-payjoin / 16942107516
83%

Build:
DEFAULT BRANCH: master
Ran 13 Aug 2025 03:40PM UTC
Jobs 1
Files 46
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

13 Aug 2025 03:37PM UTC coverage: 85.902% (+0.03%) from 85.874%
16942107516

push

github

web-flow
Decapsulate v1 provisional and payjoin typestate from v2 typestate (#938)

We currently represent a failure to finalize a Payjoin proposal using
the `ReplayableError(ImplementationError)` variant. While this is
appropriate for a v1 Payjoin receiver, it misrepresents the expected
behavior for a v2 receiver. In v2, encountering an implementation error
is considered a transient failure. i.e the receiver should retry the
session rather than respond to the sender and terminate it.

This misclassification stems from the current v2 -> v1 type hierarchy,
which forces the v2 receiver to adopt `ReplayableError`, when a
more suitable variant exists. In reality, the v2 receiver only requires
a shared abstraction (`PsbtContext`) to finalize the PSBT and construct
a
payjoin proposal. It does not need to embed or depend on the v1
receiver’s typestates.

This PR introduces `PsbtContext` as a common abstraction for
proposal finalization and decouples the `ProvisionalProposal` and
`PayjoinProposal` typestates from the v1 typestate. Additionally we map
the finalize proposal error to a new SessionError integration error
variant.

122 of 129 new or added lines in 5 files covered. (94.57%)

1 existing line in 1 file now uncovered.

7501 of 8732 relevant lines covered (85.9%)

533.68 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
2
98.42
-0.24% payjoin/src/core/receive/mod.rs
2
25.0
-2.27% payjoin/src/core/receive/v2/error.rs
3
91.52
-0.02% payjoin/src/core/receive/v2/mod.rs

Uncovered Existing Lines

Lines Coverage ∆ File
1
91.52
-0.02% payjoin/src/core/receive/v2/mod.rs
Jobs
ID Job ID Ran Files Coverage
1 16942107516.1 13 Aug 2025 03:40PM UTC 46
85.9
GitHub Action Run
Source Files on build 16942107516
  • Tree
  • List 46
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #16942107516
  • e0e6dff7 on github
  • Prev Build on master (#16901789693)
  • Next Build on master (#16943032439)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc