Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simulate SigVerification correctly #5179

Closed
wants to merge 8 commits into from
Closed

Conversation

AdityaSripal
Copy link
Member

@AdityaSripal AdityaSripal commented Oct 10, 2019

There was an undetected bug in how signature verification cost gets simulated in #5006. This is a quick PR to fix the issue

  • Targeted PR against correct branch (see CONTRIBUTING.md)

  • Linked to github-issue with discussion and accepted design OR link to spec that describes this work.

  • Wrote tests

  • Updated relevant documentation (docs/)

  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md

  • Re-reviewed Files changed in the github PR explorer


For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

ACK 🎉

Copy link
Contributor

@alexanderbez alexanderbez left a comment

Choose a reason for hiding this comment

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

@AdityaSripal >

the consumeSimSigGas name is misleading since it seems like it is simulating signature verification. Really what it is doing is consuming the gas for the size of the signature since that didn’t happen with ConsumeTxSizeGasDecorator since the signature is nil

@alexanderbez >

how is it misleading tho? consumeSimSigGas seems like it consumes just gas?

@AdityaSripal >

it does, but really it is not doing signature verification gas consumption

@codecov
Copy link

codecov bot commented Oct 10, 2019

Codecov Report

Merging #5179 into master will increase coverage by 0.06%.
The diff coverage is 61.53%.

@@            Coverage Diff             @@
##           master    #5179      +/-   ##
==========================================
+ Coverage   53.36%   53.42%   +0.06%     
==========================================
  Files         290      290              
  Lines       17696    17701       +5     
==========================================
+ Hits         9443     9457      +14     
+ Misses       7516     7506      -10     
- Partials      737      738       +1

Copy link
Collaborator

@fedekunze fedekunze left a comment

Choose a reason for hiding this comment

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

utACK

x/auth/ante/sigverify.go Outdated Show resolved Hide resolved
@AdityaSripal
Copy link
Member Author

Closing in favor of #5195

@AdityaSripal AdityaSripal deleted the aditya/sim-sig-fix branch October 21, 2019 21:25
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