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

Keep increasing gas amount every time when unrevoke #1435

Closed
kwunyeung opened this issue Jun 28, 2018 · 5 comments
Closed

Keep increasing gas amount every time when unrevoke #1435

kwunyeung opened this issue Jun 28, 2018 · 5 comments

Comments

@kwunyeung
Copy link
Contributor

I have been revoked several time yesterday. I could unrevoke without the --gas flag before which means the default gas amount was enough to run the unrevoke. After a few unrevoke, I started to have to put the --gas flag and I have to increase it every time. Otherwise, the transaction will be out of gas. I originally put 300000 and it works, then it has to be 350000 to be through, then 400000.

@kwunyeung
Copy link
Contributor Author

@cwgoes It eventually not only for unrevoke. Some other commands need more and more gas. I tried gaiacli stake unbond also reflecting this. Seems these affect those commands with stake module.

@cwgoes
Copy link
Contributor

cwgoes commented Jun 29, 2018

Thanks for reporting this. unrevoke should be more-or-less constant gas; it doesn't require iteration. Did you try attempting to replicate this on a local testnet? In either case, we'll look into it.

@kwunyeung
Copy link
Contributor Author

@sherry13131 please see if we have similar situation in our testnet.

@cwgoes
Copy link
Contributor

cwgoes commented Jul 4, 2018

Alternatively, if you know the transaction hashes I can debug from those.

@cwgoes
Copy link
Contributor

cwgoes commented Jul 6, 2018

Thanks for reporting this. unrevoke should be more-or-less constant gas; it doesn't require iteration. Did you try attempting to replicate this on a local testnet? In either case, we'll look into it.

This isn't quite correct; in some cases unrevoke will cause iteration over validators, which will consume additional gas. Likely the number of validators just increased between your successive unrevoke calls. We plan to have the CLI simulate transactions and choose an appropriate gas amount automatically. Closing in favor of #1246 since this is expected behavior, but please reopen if you run into any abnormal gas increases on your testnet.

@cwgoes cwgoes closed this as completed Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants