Skip to content

Silei/software upgrade: trigger the DoSwitch() in the EndBlock handler#82

Merged
wukongcheng merged 5 commits intoirisnet:feature/software-upgradefrom
wukongcheng:silei/software-upgrade
Aug 1, 2018
Merged

Silei/software upgrade: trigger the DoSwitch() in the EndBlock handler#82
wukongcheng merged 5 commits intoirisnet:feature/software-upgradefrom
wukongcheng:silei/software-upgrade

Conversation

@wukongcheng
Copy link
Contributor

No description provided.

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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 wukongcheng merged commit 6fdae96 into irisnet:feature/software-upgrade Aug 1, 2018
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants