-
Notifications
You must be signed in to change notification settings - Fork 31
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
[R4R]: Add upgrade manager #88
Conversation
baseapp/baseapp.go
Outdated
@@ -339,6 +344,8 @@ func (app *BaseApp) InitChain(req abci.RequestInitChain) (res abci.ResponseInitC | |||
app.SetDeliverState(abci.Header{ChainID: req.ChainId}) | |||
app.SetCheckState(abci.Header{ChainID: req.ChainId}) | |||
|
|||
sdk.UpgradeMgr.SetHeight(1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not need this
types/upgrade.go
Outdated
return mgr.Height | ||
} | ||
|
||
func (mgr UpgradeManager) IsFixMatchEngineFork() bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
too common name.
@@ -506,6 +508,8 @@ func (app *BaseApp) BeginBlock(req abci.RequestBeginBlock) (res abci.ResponseBeg | |||
)) | |||
} | |||
|
|||
sdk.UpgradeMgr.SetHeight(req.Header.Height) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check the recover.
b284af0
to
b04aa8f
Compare
Description
Add upgrade manager.
Add a global variable for current height. So we can access the height easily in places where we want if we decide to fork.
Rationale
Example
Changes
Notable changes:
Preflight checks
make build
)make test
)make integration_test
)Already reviewed by
...
Related issues
... reference related issue #'s here ...