Skip to content

Fix check_payment docstring - #1626

Merged
benalleng merged 1 commit into
payjoin:masterfrom
xstoicunicornx:fix-check_payment-docstring
Jun 8, 2026
Merged

benalleng merged 1 commit into
payjoin:masterfrom
xstoicunicornx:fix-check_payment-docstring

Conversation

@xstoicunicornx

Copy link
Copy Markdown
Collaborator

Summary

Fixes and check_payment inaccurate docstring by removing reference to receiver inputs being in the fallback tx (there are not receiver inputs in the fallback tx). Inaccuracy first identified in #1548.

Pull Request Checklist

Please confirm the following before requesting review:

@coveralls

Copy link
Copy Markdown
Collaborator

Coverage Report for CI Build 27154068594

Warning

Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes.
Quick fix: rebase this PR. Learn more →

Coverage remained the same at 85.371%

Details

  • Coverage remained the same as the base build.
  • Patch coverage: No coverable lines changed in this PR.
  • No coverage regressions found.

Uncovered Changes

No uncovered changes found.

Coverage Regressions

No coverage regressions found.


Coverage Stats

Coverage Status
Relevant Lines: 14690
Covered Lines: 12541
Line Coverage: 85.37%
Coverage Strength: 371.46 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.

Wait is this comment wrong? #1548 (comment) Nvm I got the diff reversed in my head this is removing "receiver".

Should we be adding "sender" instead? The PR description again reminds me there can't be receiver inputs. though perhaps my repeated confusion is proof that maybe its worth just adding "sender"

@xstoicunicornx

Copy link
Copy Markdown
Collaborator Author

I opted for removing rather than replacing with 'sender' just because I felt like having 'sender' there gave some sort of vague impression that there are non-sender inputs. Plus the code itself doesn't do any "this is a sender input" checks, it simply checks the inputs of the fallback tx.

I also think first seeing 'receiver' there biases the confusion to want to replace it with 'sender'.

Happy to add 'sender' in if you feel that is the right call.

@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 f28dd54 I re-read the full doc-string again and I think I am satisfied. I think with the understanding that this is in the Monitor typestate it is ok as is 👍

@benalleng
benalleng merged commit d76374b into payjoin:master Jun 8, 2026
14 checks passed
@xstoicunicornx
xstoicunicornx deleted the fix-check_payment-docstring branch June 8, 2026 18:01
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.

3 participants