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

OnValidatorModified misused for some delegation situations #2785

Closed
rigelrozanski opened this issue Nov 12, 2018 · 2 comments
Closed

OnValidatorModified misused for some delegation situations #2785

rigelrozanski opened this issue Nov 12, 2018 · 2 comments
Labels
C:x/distribution distribution module related

Comments

@rigelrozanski
Copy link
Contributor

Ref #2764 (comment)

this isn't a critical bug, it's more just overkill.

OnValidatorModified withdraws all the fees of the validator including commission to the validators liquid account. This makes sense to occur for:

  • validator commission rate changes
  • validator changes self-bond

This procedure contains all the necessary updates but also more for:

  • validator power change due to (non-self) delegation

really we should create a new type of function hook which is used for non-self delegations. This hook does not need to force the validator to withdraw their rewards to their liquid account, but does require them to withdraw global pool accum.


going to think about this more - maybe not even a bad idea to just leave this anyways.
CC @cwgoes

@jackzampolin
Copy link
Member

Is this still an issue?

@cwgoes
Copy link
Contributor

cwgoes commented May 28, 2019

No, was fixed by F1.

@cwgoes cwgoes closed this as completed May 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C:x/distribution distribution module related
Projects
None yet
Development

No branches or pull requests

3 participants