We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The field Validator.UnbondingHeight in the staking module
Validator.UnbondingHeight
cosmos-sdk/x/staking/types/staking.pb.go
Lines 329 to 330 in 0d4fd41
is not useful or correctly used and is just confusing.
v0.45.6 https://github.com/cosmos/cosmos-sdk/tree/v0.45.6
Unbonding validator validator.UnbondingHeight set =ctx.BlockHeader().Height
validator.UnbondingHeight
=ctx.BlockHeader().Height
cosmos-sdk/x/staking/keeper/val_state_change.go
Lines 319 to 328 in 0d4fd41
and correctly documented here
but misused here (comment is wrong)
cosmos-sdk/x/staking/keeper/delegation.go
Lines 765 to 786 in 0d4fd41
and again here by checking keyHeight <= blockHeight (validator.UnbondingHeight <= now) which is trivially true
keyHeight <= blockHeight
validator.UnbondingHeight <= now
cosmos-sdk/x/staking/keeper/validator.go
Lines 411 to 420 in f2d9444
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Summary of Bug
The field
Validator.UnbondingHeight
in the staking modulecosmos-sdk/x/staking/types/staking.pb.go
Lines 329 to 330 in 0d4fd41
is not useful or correctly used and is just confusing.
Version
v0.45.6
https://github.com/cosmos/cosmos-sdk/tree/v0.45.6
Explanation
Unbonding validator
validator.UnbondingHeight
set=ctx.BlockHeader().Height
cosmos-sdk/x/staking/keeper/val_state_change.go
Lines 319 to 328 in 0d4fd41
and correctly documented here
cosmos-sdk/x/staking/types/staking.pb.go
Lines 329 to 330 in 0d4fd41
but misused here (comment is wrong)
cosmos-sdk/x/staking/keeper/delegation.go
Lines 765 to 786 in 0d4fd41
and again here by checking
keyHeight <= blockHeight
(validator.UnbondingHeight <= now
) which is trivially truecosmos-sdk/x/staking/keeper/validator.go
Lines 411 to 420 in f2d9444
For Admin Use
The text was updated successfully, but these errors were encountered: