Skip to content

types: simplify safeMul#5061

Merged
mergify[bot] merged 3 commits intomasterfrom
anton/4764-follow-up
Jun 29, 2020
Merged

types: simplify safeMul#5061
mergify[bot] merged 3 commits intomasterfrom
anton/4764-follow-up

Conversation

@melekes
Copy link
Contributor

@melekes melekes commented Jun 29, 2020

Refs #4764 (comment)

also, multiplication using * should be more efficient.

Refs #4764 (comment)

also, multiplication via * should be more efficient.
@melekes melekes requested a review from tessr as a code owner June 29, 2020 06:35
@auto-comment
Copy link

auto-comment bot commented Jun 29, 2020

👋 Thanks for creating a PR!

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

  • Wrote tests
  • Updated CHANGELOG_PENDING.md
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Updated relevant documentation (docs/) and code comments
  • Re-reviewed Files changed in the Github PR explorer
  • Applied Appropriate Labels

Thank you for your contribution to Tendermint! 🚀

@melekes melekes self-assigned this Jun 29, 2020
@melekes melekes added the S:automerge Automatically merge PR when requirements pass label Jun 29, 2020
Copy link
Contributor

@tac0turtle tac0turtle left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@erikgrinaker erikgrinaker left a comment

Choose a reason for hiding this comment

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

This incorrectly overflows for -2⁶³ (MaxInt64 + MinInt64 = -1), but I suppose we can live with that.

@codecov
Copy link

codecov bot commented Jun 29, 2020

Codecov Report

Merging #5061 into master will increase coverage by 0.11%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5061      +/-   ##
==========================================
+ Coverage   62.44%   62.55%   +0.11%     
==========================================
  Files         256      256              
  Lines       26992    26986       -6     
==========================================
+ Hits        16854    16880      +26     
+ Misses       8644     8627      -17     
+ Partials     1494     1479      -15     
Impacted Files Coverage Δ
types/validator_set.go 86.47% <100.00%> (-0.18%) ⬇️
blockchain/v0/pool.go 79.61% <0.00%> (-2.55%) ⬇️
statesync/snapshots.go 92.59% <0.00%> (-1.49%) ⬇️
consensus/reactor.go 73.95% <0.00%> (-0.82%) ⬇️
p2p/conn/connection.go 80.00% <0.00%> (+0.24%) ⬆️
consensus/state.go 72.86% <0.00%> (+0.45%) ⬆️
p2p/pex/pex_reactor.go 80.95% <0.00%> (+0.52%) ⬆️
blockchain/v0/reactor.go 63.13% <0.00%> (+0.92%) ⬆️
consensus/replay.go 74.68% <0.00%> (+2.10%) ⬆️
blockchain/v2/reactor.go 38.88% <0.00%> (+2.96%) ⬆️
... and 6 more

@mergify mergify bot merged commit 9b7f260 into master Jun 29, 2020
@mergify mergify bot deleted the anton/4764-follow-up branch June 29, 2020 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S:automerge Automatically merge PR when requirements pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants