-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
Empty blocks are being created even though create_empty_blocks = false
is set in 'config.toml'
#10240
Comments
this could be that the sdk is updating apphashes on every block. If there is a change in the app hash the next block needs to be created. Which modules do you have locally? |
@marbar3778 The source code is here - https://github.com/shravanshetty1/blawgd. |
Some other people are stating the same issue. Some people are looking into IBC to see if this is effecting things. |
Just tested with main cosmos-sdk and see the same thing. Will triage this as a bug |
There are many things happening in begin/end blockers, if it modify state there, it's cause constant changing of app hash. |
any update on this issue? Do you think internal modules like IBC, slashing, mint etc causing this problem, if so |
After investigating this issue (along with #12356) it seems that One possible solution would be to introduce a flag eg @tac0turtle @alexanderbez How feasible do you think the above would be? Another way is to talk directly to tendermint to check the mempool during |
My immediate thought is why push this onto the server, i.e. the app? If |
It happens because of "proof blocks". Ive created PRs for sdk and tendermint which mark "proof blocks" in This seems to fix the issue, but Im not sure about side effects. Please take a look at those drafts, thx. |
thanks for the pr, since its blocked on comet we may close the PR. I like the approach you took, its a step in the right direction but i think the better fix is for comet to allow the application to control this. There was a proposal to allow this in endblock which would mean that the app can fire off a "proofBlock" and then stop blocks from being created. Secondly the other issue is this feature is a local config to node operators when it would actually be better as a consensus param or in endblock/finalizeblock. |
Hi @TobiaszCudnik, you'd be welcome to move this to a discussion or issue on the Comet repo to follow-up on Marko's suggestions for alternative fixes. We'll be glad to help. |
For those coming to this issue, this requires a design change from the current design of inflation. We would need to move to epoch based inflation instead of every block. This is part of our 2024 roadmap and look forward to working on it |
Epochs make sense. But note, if an empty block exists and it's the epoch block, you'll have a new block...so it's still a slight edge case. |
closing this as we are working on adding epochs for the mint module and will allow empty blocks to not be created in a chain with the mint modul |
Summary of Bug
Version
v.044
Steps to Reproduce
For Admin Use
The text was updated successfully, but these errors were encountered: