Silei/software upgrade: trigger the DoSwitch() in the EndBlock handler#82
Merged
wukongcheng merged 5 commits intoirisnet:feature/software-upgradefrom Aug 1, 2018
wukongcheng:silei/software-upgrade
Merged
Silei/software upgrade: trigger the DoSwitch() in the EndBlock handler#82wukongcheng merged 5 commits intoirisnet:feature/software-upgradefrom wukongcheng:silei/software-upgrade
wukongcheng merged 5 commits intoirisnet:feature/software-upgradefrom
wukongcheng:silei/software-upgrade
Conversation
MrXJC
approved these changes
Aug 1, 2018
HaoyangLiu
reviewed
Aug 1, 2018
docs/modules/software-upgrade.md
Outdated
| 1. 检查自己是否在switch voter list中,否则reset rootMultiStore到上一个commit | ||
| 2. 下载新版本,运行iris start --replay命令启动节点 | ||
| 3. replay子命令在完成app的setup后,需要阻止tendermint进行block sync,并用本地tendermint中的last block进行replay,更新ABCI App store到正确的App Hash | ||
| 3. replay子命令在完成app的setup后,需要阻止tendermint进行block sync,并用本地tendermint中的last block进行replay,更新ABCI App store到正确的App Hash |
There was a problem hiding this comment.
replay是个option,加上这个option以后,start子命令会先回滚tendermint的statedb到上一高度。如果revert前的statedb对于的高度为H,那么现在state db高度为H-1。然后对于cosmos这边的app store,只load到H-1的高度。然后就是正常启动节点,节点再检测到state db的高度和app store的高度都比block store低一个高度,就会自动replay最后一个block。
wukongcheng
added a commit
that referenced
this pull request
Aug 27, 2018
Silei/software upgrade: trigger the DoSwitch() in the EndBlock handler
wukongcheng
added a commit
that referenced
this pull request
Aug 27, 2018
Silei/software upgrade: trigger the DoSwitch() in the EndBlock handler
wangjiulian
pushed a commit
that referenced
this pull request
Nov 7, 2024
* improve keeper for interface friendly * fix keeper tests * fix handler tests Co-authored-by: secret <secret@bianjie.ai>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.