Skip to content

Range check against SignedAmount::MAX instead of i64::MAX#3697

Merged
apoelstra merged 1 commit intorust-bitcoin:masterfrom
yancyribbens:update-condition-to-use-signed-amount-max
Dec 10, 2024
Merged

Range check against SignedAmount::MAX instead of i64::MAX#3697
apoelstra merged 1 commit intorust-bitcoin:masterfrom
yancyribbens:update-condition-to-use-signed-amount-max

Conversation

@yancyribbens
Copy link
Copy Markdown
Contributor

Future proof this check by using SignedAmount::MAX in the case where the MAX SignedAmount changes to something other then i64::MAX.

Future proof this check by using SignedAmount::MAX in the case where the
MAX SignedAmount changes to something other then i64::MAX.
@github-actions github-actions bot added the C-units PRs modifying the units crate label Dec 6, 2024
@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 12201433452

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 82.874%

Totals Coverage Status
Change from base Build 12188753888: 0.0%
Covered Lines: 20193
Relevant Lines: 24366

💛 - Coveralls

Copy link
Copy Markdown
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

ACK ac74ed2

Copy link
Copy Markdown
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK ac74ed2; successfully ran local tests; nice. Simple and obviously an improvement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-units PRs modifying the units crate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants