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: Results from x/staking & x/slashing peer review #3507

Merged
merged 20 commits into from
Feb 8, 2019

Conversation

cwgoes
Copy link
Contributor

@cwgoes cwgoes commented Feb 5, 2019

cc @jackzampolin

cc @rigelrozanski I expect you'll want to review this.

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

x/staking/keeper/delegation.go Outdated Show resolved Hide resolved
x/staking/keeper/slash.go Show resolved Hide resolved
x/staking/keeper/store.md Outdated Show resolved Hide resolved
@@ -385,7 +381,7 @@ func (k Keeper) UnbondAllMatureValidatorQueue(ctx sdk.Context) {
for _, valAddr := range timeslice {
val, found := k.GetValidator(ctx, valAddr)
if !found {
continue
panic("validator in the unbonding queue was not found")
Copy link
Contributor

Choose a reason for hiding this comment

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

As explained in person, not sure if this change makes sense

Copy link
Contributor Author

Choose a reason for hiding this comment

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

RemoveValidator now removes the validator from the unbonding queue - thoughts?

Copy link
Contributor

Choose a reason for hiding this comment

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

didn't we require this for determining unbonding-delegations or redelegations for slashing purposes? If that is not the case then this comment is resolved

Copy link
Contributor Author

Choose a reason for hiding this comment

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

require what? the validator would still be around in that case, right?

x/staking/types/keys.go Show resolved Hide resolved
x/staking/types/msg.go Outdated Show resolved Hide resolved
x/staking/types/msg.go Show resolved Hide resolved
x/staking/types/validator.go Outdated Show resolved Hide resolved
x/staking/types/validator.go Outdated Show resolved Hide resolved
x/staking/types/validator.go Outdated Show resolved Hide resolved
@cwgoes cwgoes changed the title WIP: Results from x/staking peer review R4R: Results from x/staking peer review Feb 6, 2019
@cwgoes cwgoes changed the title R4R: Results from x/staking peer review R4R: Results from x/staking & x/slashing peer review Feb 6, 2019
@codecov
Copy link

codecov bot commented Feb 6, 2019

Codecov Report

❗ No coverage uploaded for pull request base (develop@a5c1c7e). Click here to learn what that means.
The diff coverage is 53.33%.

@@            Coverage Diff             @@
##             develop    #3507   +/-   ##
==========================================
  Coverage           ?   57.27%           
==========================================
  Files              ?      179           
  Lines              ?    14104           
  Branches           ?        0           
==========================================
  Hits               ?     8078           
  Misses             ?     5541           
  Partials           ?      485

cmd/gaia/app/export.go Show resolved Hide resolved
x/slashing/params.go Show resolved Hide resolved
x/staking/handler.go Show resolved Hide resolved
x/staking/keeper/delegation.go Show resolved Hide resolved
x/staking/keeper/delegation.go Outdated Show resolved Hide resolved
x/staking/keeper/delegation.go Outdated Show resolved Hide resolved
x/staking/types/msg.go Show resolved Hide resolved
cwgoes and others added 2 commits February 6, 2019 04:21
Co-Authored-By: cwgoes <cwgoes@pluranimity.org>
@cwgoes
Copy link
Contributor Author

cwgoes commented Feb 6, 2019

No need to. Commission already has a Validate method you can call here. Just use that.

This isn't a Commission type, just a decimal (the new rate).

@alexanderbez
Copy link
Contributor

No need to. Commission already has a Validate method you can call here. Just use that.

This isn't a Commission type, just a decimal (the new rate).

Ahhh yes, indeed you're right. I'm indifferent where this should exist then.

Copy link
Contributor

@rigelrozanski rigelrozanski left a comment

Choose a reason for hiding this comment

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

More comments submitted in line ^

@cwgoes cwgoes added this to the v0.31.0 (Launch RC) milestone Feb 7, 2019
@jackzampolin jackzampolin merged commit 38068a5 into develop Feb 8, 2019
@jackzampolin jackzampolin deleted the cwgoes/staking-review-working branch February 8, 2019 01:41
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.

4 participants