-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add public API BlockStore.Rollback
#8574
Conversation
We did backport these changes to v0.34. I just don't think we've cut a point release yet |
Since the current production nodes are running with old versions, and even if we release a new patch version, they don't necessarily all upgrade in time, so I think it's good to support an optional |
By pending block you mean a block that has been committed but hasn't been executed yet? |
Yeah, more specifically, it's in the block store, but not state store. |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
don't stale |
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Based on tendermint/tendermint#8574/81344ac9464db02421fa115041f162ab9ace9372
Based on tendermint/tendermint#8574/81344ac9464db02421fa115041f162ab9ace9372 Depends on cosmos/cosmos-sdk@51d2de5
Based on tendermint/tendermint#8574/81344ac9464db02421fa115041f162ab9ace9372 Depends on cosmos/cosmos-sdk@51d2de5
Based on tendermint/tendermint#8574/81344ac9464db02421fa115041f162ab9ace9372 Depends on cosmos/cosmos-sdk@51d2de5
Based on tendermint/tendermint#8574/81344ac9464db02421fa115041f162ab9ace9372 Depends on cosmos/cosmos-sdk@51d2de5
Based on tendermint/tendermint#8574/81344ac9464db02421fa115041f162ab9ace9372 Depends on cosmos/cosmos-sdk@51d2de5
- add TestRollback tests Based on HuangYi work tendermint/tendermint#8574/81344ac9464db02421fa115041f162ab9ace9372 Depends on cosmos/cosmos-sdk@51d2de5
- add TestRollback tests Based on HuangYi work tendermint/tendermint#8574/81344ac9464db02421fa115041f162ab9ace9372 Depends on cosmos/cosmos-sdk@51d2de5 --------- Co-authored-by: HuangYi <huang@crypto.com>
- add TestRollback tests Based on HuangYi work tendermint/tendermint#8574/81344ac9464db02421fa115041f162ab9ace9372 Depends on cosmos/cosmos-sdk@51d2de5 --------- Co-authored-by: HuangYi <huang@crypto.com>
- add TestRollback tests Based on HuangYi work tendermint/tendermint#8574/81344ac9464db02421fa115041f162ab9ace9372 --------- Co-authored-by: HuangYi <huang@crypto.com>
- add TestRollback tests Based on HuangYi work tendermint/tendermint#8574/81344ac9464db02421fa115041f162ab9ace9372 --------- Co-authored-by: HuangYi <huang@crypto.com>
The context: #8223 (comment), #8493
So although the newest tendermint has implemented the "validate block before persist", but since the production node could be still using the old version, and when app hash mismatch happens, the pending block is already persisted, so we still want to be able to delete that pending block manually.
By exposing this public API, we can do the block store rollback in the application side.