-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Remove DelegatorAddress from Msg CreateValidator #4595
Comments
I don't think this is quite right. See my response here: #4638 (review) |
It looks as though there is a bit of an inconsistency in the staking logic here.
This looks as though it is leftover code from the idea of "create-validator-on-behalf-of" logic. I recommend we move the DelegatorAddress from the message structure as @alexanderbez suggested in the PR review |
Do you mind amending the PR @Guy1m0? |
Feel free. And I think moving the DelegatorAddress is more reasonable. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
For the type MsgCreateValidator, it has the following logic in ValidateBasic
But when calls its GetSigners(), it checks again if the two address, ValidatorAddress and DelegatorAddress, are equal.
Therefore, I think the later if-condition might be redundant
The text was updated successfully, but these errors were encountered: