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: Distr-PR-3 More staking hooks #2381

Merged
merged 6 commits into from
Sep 25, 2018
Merged

Conversation

rigelrozanski
Copy link
Contributor

@rigelrozanski rigelrozanski commented Sep 22, 2018

For distribution PR (ref #2236)
Merge to develop (change base required) after Distr-PR-2 (ref #2379) merged

  • 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 (n/a I think here)

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

@rigelrozanski rigelrozanski changed the base branch from develop to rigel/truncate-decimal September 22, 2018 20:35
@codecov
Copy link

codecov bot commented Sep 22, 2018

Codecov Report

❗ No coverage uploaded for pull request base (rigel/truncate-decimal@ff8d748). Click here to learn what that means.
The diff coverage is 37.5%.

@@                    Coverage Diff                    @@
##             rigel/truncate-decimal    #2381   +/-   ##
=========================================================
  Coverage                          ?   64.64%           
=========================================================
  Files                             ?      136           
  Lines                             ?     8506           
  Branches                          ?        0           
=========================================================
  Hits                              ?     5499           
  Misses                            ?     2631           
  Partials                          ?      376


// XXX remove this code - this is should be superceded by commission work that bez is doing
// get a single validator
func (k Keeper) UpdateValidatorCommission(ctx sdk.Context, addr sdk.ValAddress, newCommission sdk.Dec) sdk.Error {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This will be removed before this PR is merged - just need to work from #2365 to update properly

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.

Looks good @rigelrozanski -- left some feedback.

types/stake.go Show resolved Hide resolved
x/slashing/hooks.go Show resolved Hide resolved
x/stake/keeper/delegation.go Outdated Show resolved Hide resolved
x/stake/keeper/validator.go Outdated Show resolved Hide resolved
@jaekwon jaekwon merged this pull request into rigel/truncate-decimal Sep 25, 2018
@jaekwon jaekwon deleted the rigel/new-hooks branch September 25, 2018 04:24
@rigelrozanski rigelrozanski restored the rigel/new-hooks branch September 25, 2018 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants