Skip to content

Remove amount assert in pjuri fuzzer#1480

Merged
spacebear21 merged 2 commits into
payjoin:masterfrom
benalleng:max-amount-fuzzer
Apr 16, 2026
Merged

Remove amount assert in pjuri fuzzer#1480
spacebear21 merged 2 commits into
payjoin:masterfrom
benalleng:max-amount-fuzzer

Conversation

@benalleng
Copy link
Copy Markdown
Collaborator

Until a decision can be made regarding payjoin/bitcoin_uri#11 we should not need to check if the amount is greater than max amount.

Pull Request Checklist

Please confirm the following before requesting review:

@coveralls
Copy link
Copy Markdown
Collaborator

coveralls commented Apr 14, 2026

Coverage Report for CI Build 24461549759

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 84.34%

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: 12803
Covered Lines: 10798
Line Coverage: 84.34%
Coverage Strength: 412.38 hits per line

💛 - Coveralls

Until a decision can be made regarding payjoin/bitcoin_uri#11
we should not need to check if the amount is greater than max amount.
Copy link
Copy Markdown
Collaborator

@xstoicunicornx xstoicunicornx left a comment

Choose a reason for hiding this comment

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

Ack 85b73f2

Removing the amount assert from pj uri fuzzer until there is clarity on payjoin/bitcoin_uri#11 makes sense to me. Reviewed changes and ran fuzzer.

Comment on lines +37 to +38
// Remove assert for max amount fuzzer as long as we think its not necessary
// assert!(amount.is_none_or(|btc| btc < Amount::MAX_MONEY));
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.

Nit: Maybe don't need these comments at all?

I get that the comments are meant to keep payjoin/bitcoin_uri#11 resolution top of mind, and agree that the comments help with that, but it made me ask why fuzzing of bitcoin_uri is happening in this repo rather than in bitcoin_uri repo?

Copy link
Copy Markdown
Collaborator Author

@benalleng benalleng Apr 15, 2026

Choose a reason for hiding this comment

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

This was added mostly as a POC when installing the fuzzer in payjoin but it gets run whenever I do a .cycle.sh run so I catch stuff in my test occasionally.

Ideally over the next year I'd like to pull it out and move it over to bitcoin_uri as we get more actual payjoin related fuzzers

The relevant asserts and questions can be found in bitcoin_uri and the
history of this file.
Copy link
Copy Markdown
Collaborator

@xstoicunicornx xstoicunicornx left a comment

Choose a reason for hiding this comment

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

Ack 3c8c761

Copy link
Copy Markdown
Collaborator

@spacebear21 spacebear21 left a comment

Choose a reason for hiding this comment

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

cACK

@spacebear21 spacebear21 merged commit 7b9057d into payjoin:master Apr 16, 2026
14 checks passed
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