-
Notifications
You must be signed in to change notification settings - Fork 212
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
refactor cosmos init #8060
refactor cosmos init #8060
Conversation
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.
I've grokked what you're doing here. LGTM.
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.
LGTM modulo two minor issues.
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
|
||
|
||
lastUpdateCheck 1689807326102 |
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.
Did this file get accidentally included?
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.
Yikes!
@@ -837,6 +838,7 @@ type cosmosInitAction struct { | |||
// Name returns the name of the App | |||
func (app *GaiaApp) Name() string { return app.BaseApp.Name() } | |||
|
|||
// CheckControllerInited exits if the controller initialization state does not match `expected`. |
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.
The godoc
tool doesn't parse markdown.
// CheckControllerInited exits if the controller initialization state does not match `expected`. | |
// CheckControllerInited exits if the controller initialization state does not match expected. |
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.
Is that a problem? In general I prefer delimiting code references with backticks even if they don't get parsed as markdown.
9aa87e3
to
f19ebc8
Compare
f19ebc8
to
554a110
Compare
Best reviewed commit-by-commit
Description
In order to support the migrations needed for #8025 #8031, and to implement #6527, we need to extend the cases where the snapshot logic is exercised. This PR simply adds guards where they were previously implicit through usage. It also fixes a potential bootstrap timing issue, where it was performed before the
x/lien
module was initialized. Finally it makes the timing ofAG_COSMOS_INIT
more explicit (no longer lazy on first BlockingSend)Security Considerations
Adds checks regarding assumed init ordering
Scaling Considerations
N/A
Documentation Considerations
N/A
Testing Considerations
As with most logic straddling between golang and JS, there is little tests beyond the integration tests. This PR is changing little behavior, and what is changes does not have existing unit test coverage.