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: lazy commission validation #4466

Merged
merged 4 commits into from
Jun 3, 2019
Merged

R4R: lazy commission validation #4466

merged 4 commits into from
Jun 3, 2019

Conversation

colin-axner
Copy link
Contributor

@colin-axner colin-axner commented May 31, 2019

Fixes #3854

Changes CommissionMsg to CommissionRates which is embedded into Commission. Adds rate validation into MsgCreateValidator.ValidateBasic()

  • 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: clog add [section] [stanza] [message]

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

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.

LGTM, pending changelog entry

@fedekunze fedekunze added the T: API Breaking Breaking changes that impact APIs and the SDK only (not state machine). label Jun 3, 2019
@alexanderbez
Copy link
Contributor

Is this R4R @colin-axner ?

@colin-axner colin-axner changed the title WIP: lazy commission validation R4R: lazy commission validation Jun 3, 2019
@colin-axner
Copy link
Contributor Author

@alexanderbez yes

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.

LGTM, thanks @colin-axner. I have one minor nitpick on the change which makes this breaking.

@codecov
Copy link

codecov bot commented Jun 3, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@52be449). Click here to learn what that means.
The diff coverage is 42.1%.

@@            Coverage Diff            @@
##             master    #4466   +/-   ##
=========================================
  Coverage          ?   54.59%           
=========================================
  Files             ?      250           
  Lines             ?    16074           
  Branches          ?        0           
=========================================
  Hits              ?     8775           
  Misses            ?     6651           
  Partials          ?      648

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.

thanks @colin-axner !

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 ☕️

@alexanderbez alexanderbez merged commit 9c04932 into cosmos:master Jun 3, 2019
@colin-axner colin-axner deleted the colin/3854-lazy-commission-validation branch June 3, 2019 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T: API Breaking Breaking changes that impact APIs and the SDK only (not state machine).
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MsgCreateValidator.ValidateBasic does not validate commission
3 participants