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

[Bug]: Unbond validator is not working on v19.0.0-rc #3245

Closed
1 task done
arifintahu opened this issue Jul 31, 2024 · 6 comments · Fixed by #3249
Closed
1 task done

[Bug]: Unbond validator is not working on v19.0.0-rc #3245

arifintahu opened this issue Jul 31, 2024 · 6 comments · Fixed by #3249
Labels
scope: cosmos-sdk Integration with Cosmos SDK type: bug Issues that need priority attention -- something isn't working

Comments

@arifintahu
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

What happened?

A bug happened!
I tried gaiad tx staking unbond-validator --from validator1 on v19.0.0-rc0 theta testnet and then I got

Error: hrp does not match bech32 prefix: expected 'cosmos' got 'cosmosvaloper': internal logic error

image

After following the corresponding code, it seems the error come from cosmos sdk v0.50.8-lsm https://github.com/cosmos/cosmos-sdk/blob/62baa29ab9e3f190b148fc9e2e8e884da452a8e9/x/staking/client/cli/tx.go#L338
valAddrCodec.BytesToString cannot process valoper

Gaia Version

v19.0.0-rc0 to v19.0.0-rc3

How to reproduce?

  1. create validator on theta testnet
  2. unbond validator gaiad tx staking unbond-validator --from validator1
@arifintahu arifintahu added status: waiting-triage This issue/PR has not yet been triaged by the team. type: bug Issues that need priority attention -- something isn't working labels Jul 31, 2024
@github-project-automation github-project-automation bot moved this to 🩹 F1: Triage in Cosmos Hub Jul 31, 2024
@MSalopek
Copy link
Contributor

MSalopek commented Jul 31, 2024

Thanks for opening the issue.

The text and the image you showed do not match. The text states you are executing an unbond Tx, while the image shows that you have a signing step.

How did you generate the Tx?

We're checking it out.

@arifintahu
Copy link
Author

I tried two methods directly signing unbond validator and signing using tx sign, but the result is the same

  1. gaiad tx staking unbond-validator --from validator1
  2. gaiad tx staking unbond-validator --from validator1 --generate-only > msg.json | gaiad tx sign msg.json --from validator1

@MSalopek
Copy link
Contributor

Thanks for the additional context!

We are looking into it.

@MSalopek
Copy link
Contributor

The bug has been triaged and the fix will be ready soon. The fix will be a part of the upcoming cosmos-sdk-lsm release and the next gaia release candidate.

Thank you @arifintahu

@MSalopek MSalopek added scope: cosmos-sdk Integration with Cosmos SDK and removed status: waiting-triage This issue/PR has not yet been triaged by the team. labels Jul 31, 2024
@MSalopek MSalopek moved this from 🩹 F1: Triage to 🏗 F3: InProgress in Cosmos Hub Jul 31, 2024
@MSalopek MSalopek linked a pull request Aug 1, 2024 that will close this issue
@MSalopek
Copy link
Contributor

MSalopek commented Aug 1, 2024

Fixed in:
#3249

Targeting v19.0.0-rc0. The changes will be in the mainnet v19.0.0 release.

Thanks once again!

@arifintahu
Copy link
Author

Great, glad to hear that!

@github-project-automation github-project-automation bot moved this from 🏗 F3: InProgress to 👍 F4: Assessment in Cosmos Hub Aug 1, 2024
@mpoke mpoke moved this from 👍 F4: Assessment to ✅ Done in Cosmos Hub Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope: cosmos-sdk Integration with Cosmos SDK type: bug Issues that need priority attention -- something isn't working
Projects
No open projects
Status: ✅ Done
Development

Successfully merging a pull request may close this issue.

2 participants