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

R4R: AnteHandler Cleanup #2950

Merged
merged 12 commits into from
Dec 4, 2018
Merged

R4R: AnteHandler Cleanup #2950

merged 12 commits into from
Dec 4, 2018

Conversation

alexanderbez
Copy link
Contributor

@alexanderbez alexanderbez commented Nov 29, 2018

  • minor cleanup ante handler
  • use CodeInternal for invalid account numbers

  • 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 entries in PENDING.md with issue #

  • rereviewed 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)

@alexanderbez alexanderbez added wip Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity. labels Nov 29, 2018
@alexanderbez alexanderbez changed the title WIP: AnteHandler Cleanup R4R: AnteHandler Cleanup Nov 29, 2018
x/auth/ante.go Outdated Show resolved Hide resolved
x/auth/ante.go Outdated Show resolved Hide resolved
x/auth/ante.go Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Nov 29, 2018

Codecov Report

Merging #2950 into develop will not change coverage.
The diff coverage is 20%.

@@           Coverage Diff            @@
##           develop    #2950   +/-   ##
========================================
  Coverage    55.53%   55.53%           
========================================
  Files          120      120           
  Lines         8494     8494           
========================================
  Hits          4717     4717           
  Misses        3455     3455           
  Partials       322      322

Copy link
Contributor

@alessio alessio left a comment

Choose a reason for hiding this comment

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

All looks clean and tidy. Good to go

Copy link
Contributor

@ValarDragon ValarDragon left a comment

Choose a reason for hiding this comment

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

If we end up removing the account number / sequence number per #2952, this newly added error code is obsolete. (And is thus creating an unnecessary future breaking change) I propose instead just using ErrInternal

@alexanderbez
Copy link
Contributor Author

Updated @ValarDragon to use CodeInternal.

@cwgoes
Copy link
Contributor

cwgoes commented Dec 4, 2018

@alexanderbez Looks like this just needs a minor rebase? Glad to quickly once-over again after, then should be OK to merge.

@alexanderbez
Copy link
Contributor Author

Yes, I'll fix asap.

@alexanderbez
Copy link
Contributor Author

@cwgoes updated. I no longer think this warrants a pending log update.

Copy link
Contributor

@cwgoes cwgoes left a comment

Choose a reason for hiding this comment

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

Tested ACK (no substantive changes - but great cleanup!)

@cwgoes cwgoes merged commit bcfd93f into develop Dec 4, 2018
@cwgoes cwgoes deleted the bez/ante-cleanup branch December 4, 2018 16:42
mircea-c pushed a commit that referenced this pull request Dec 5, 2018
* Add and use CodeInvalidAccountNumber in ante handler

* Minor cleanup of ante handler

* Add pending log entry

* Spell check and more minor comment restructuring

* Add additional CodeInvalidAccountNumber

* Update validateAccNumAndSequence

* Revert account number error in favor of CodeInternal

* Update pending log

* Fix pending log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Code Hygiene General cleanup and restructuring of code to provide clarity, flexibility, and modularity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants