-
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
Rename stake Validator.Owner -> .Operator #1950
Rename stake Validator.Owner -> .Operator #1950
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍 (hopefully I didn't miss anything :-p)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
utACK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lookin' gud
what's with waiting for this linter to pass? maybe we should merge to a cosmos branch then merge in to develop from there? |
Why's that? |
because we've been waiting for the CI linter to run for a long long time |
Waiting until after v0.24 |
I'm very confused as to why setup_dependencies hasn't ended. It looks as though that job never got started? (Theres no |
@@ -28,74 +28,74 @@ A validator is created using the `TxCreateValidator` transaction. | |||
|
|||
```golang | |||
type TxCreateValidator struct { | |||
OwnerAddr sdk.Address | |||
Operator sdk.Address |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
formatting is off
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strings are same length:
alessio@bizet:~$ [ `echo "OwnerAddr sdk.Address" | wc -m` = `echo "Operator sdk.Address" | wc -m` ] && echo OK || echo KO
OK
Perhaps I misunderstood though.
x/stake/types/validator.go
Outdated
var storeValue validatorValue | ||
err = cdc.UnmarshalBinary(value, &storeValue) | ||
if err != nil { | ||
return | ||
} | ||
|
||
if len(ownerAddr) != 20 { | ||
if len(operatorAddr) != 20 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
magic number
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe @melekes is suggesting this should be a constant -- correct me if I'm wrong ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think he is. @melekes could you elaborate please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What @alexanderbez said ^^
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Being addressed in #1997
ugh failing because of non-determinism - @alessio want to re-run test_cover? |
Hmmm, strange...
|
Yeah I've seen this one a bunch is it not the same as the other nondeterministic test failure? |
That is the normal non-deterministic test failure on test_cover. Is there an open issue for it yet? |
@ValarDragon just made one (it didn't exist as far as I could tell) - also introduced a non-determinism issue label |
Strange -- no, I don't think so @ValarDragon |
Rebased on develop. |
@cosmos/cosmos-ui breaking |
@faboweb I'm trying to add the |
--address-validator
renamed to--validator
Validator
interface'sGetOwner()
renamed toGetOperator()
Validator.Owner
renamed toValidator.Operator
Relevant issue: #1901