Skip to content

[WIP] Add AS-aware relay selection#1514

Draft
Mshehu5 wants to merge 2 commits intopayjoin:masterfrom
Mshehu5:ASN_asmap
Draft

[WIP] Add AS-aware relay selection#1514
Mshehu5 wants to merge 2 commits intopayjoin:masterfrom
Mshehu5:ASN_asmap

Conversation

@Mshehu5
Copy link
Copy Markdown
Contributor

@Mshehu5 Mshehu5 commented May 1, 2026

This PR closes #919

This PR is still a Work in progress will add more info when ready

Pull Request Checklist

Please confirm the following before requesting review:

@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented May 1, 2026

Coverage Report for CI Build 25344800804

Coverage decreased (-0.8%) to 84.298%

Details

  • Coverage decreased (-0.8%) from the base build.
  • Patch coverage: 274 uncovered changes across 5 files (760 of 1034 lines covered, 73.5%).
  • 8 coverage regressions across 2 files.

Uncovered Changes

File Changed Covered %
payjoin-cli/src/app/v2/asmap.rs 191 60 31.41%
payjoin-cli/src/app/v2/ohttp.rs 88 36 40.91%
payjoin-cli/src/app/config.rs 63 25 39.68%
payjoin-cli/src/app/v2/relay_selection.rs 579 549 94.82%
payjoin-cli/src/app/v2/mod.rs 113 90 79.65%

Coverage Regressions

8 previously-covered lines in 2 files lost coverage.

File Lines Losing Coverage Coverage
payjoin-cli/src/app/v2/ohttp.rs 7 40.57%
payjoin-cli/src/app/config.rs 1 68.14%

Coverage Stats

Coverage Status
Relevant Lines: 14438
Covered Lines: 12171
Line Coverage: 84.3%
Coverage Strength: 374.0 hits per line

💛 - Coveralls

ASMap-based filtering to payjoin-cli.

This introduces pinned relay and directory resolution, deterministic
relay ordering, and the config plumbing needed to keep sender and receiver relay choice aligned.
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.

asmap should be used for relay selection

2 participants