Skip to content

Rename Monitor method#1661

Merged
spacebear21 merged 1 commit into
payjoin:masterfrom
spacebear21:rename-check-for-broadcast
Jun 22, 2026
Merged

Rename Monitor method#1661
spacebear21 merged 1 commit into
payjoin:masterfrom
spacebear21:rename-check-for-broadcast

Conversation

@spacebear21

Copy link
Copy Markdown
Collaborator

See #1656 for bikeshed details

Pull Request Checklist

Please confirm the following before requesting review:

This method does not check for "payment", it checks for transaction
broadcast.
@spacebear21 spacebear21 requested a review from DanGould June 19, 2026 17:00
@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 27838714039

Coverage decreased (-0.006%) to 85.207%

Details

  • Coverage decreased (-0.006%) from the base build.
  • Patch coverage: 1 uncovered change across 1 file (6 of 7 lines covered, 85.71%).
  • No coverage regressions found.

Uncovered Changes

File Changed Covered %
payjoin/src/core/receive/v2/mod.rs 6 5 83.33%
Total (2 files) 7 6 85.71%

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 14750
Covered Lines: 12568
Line Coverage: 85.21%
Coverage Strength: 370.21 hits per line

💛 - Coveralls

@benalleng benalleng left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 65c2694 check_for_broadcast is clear that this relates to chain level data and not necessarily any information about whether the payjoin process was successful or it was a fallback tx; only that A transaction has been broadcast to the network.

@spacebear21 spacebear21 merged commit 7d039f7 into payjoin:master Jun 22, 2026
22 checks passed
@DanGould

Copy link
Copy Markdown
Member

Checking for broadcast also seems like a recommendation. It's possible that a monitoring client would want to wait for a confirmation before they mark the Payjoin State machine as successful. I want to revisit this for sure before we release

@spacebear21

Copy link
Copy Markdown
Collaborator Author

It's possible that a monitoring client would want to wait for a confirmation before they mark the Payjoin State machine as successful

I thought about this but this lead back to language like "settlement", happy to change it again if you have a concrete suggestion.

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.

4 participants