-
Notifications
You must be signed in to change notification settings - Fork 334
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
Minimal v0.44 app, without deleting unupgraded packages #1029
Conversation
build time. This is shown in the tendermint /status endpoint
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.
PR lgtm, the only regression I noticed is we used to disable cobra sorting when creating the root command.
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.
revisions look good
app/ante/ante_test.go
Outdated
for i := range addresses { | ||
coinsList[i] = coins | ||
// NewFundedGenStateWithSameCoins creates a (auth and bank) genesis state populated with accounts from the given addresses and balance. | ||
func NewFundedGenStateWithSameCoins(cdc codec.JSONCodec, balance sdk.Coins, addresses []sdk.AccAddress) app.GenesisState { |
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.
should we move this to test_common
? NewAuthGenState
from test_common
should do the same thing but is currently not returning the gen state for the bank module so its not giving the accounts any coins
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.
yeah that makes sense, moved in 18a2266
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.
perfect, looks great!
This PR simplifies the app and upgrades it to sdk v0.44.2.
The app can be run with
make install
thenmake start
.Previously I'd planned to delete all packages, then add them back in as they were upgraded. This would avoid having uncompilable code hanging out in the repo causing problems with go tooling (go test, go mod tidy, etc).
However, this means that PRs will have no diff against the old code, making reviews more difficult and removing PRs as a source of documentation.
An alternative is to not delete modules, but to "ignore" them by adding an empty go.mod file. This makes various go tools ignore their contents -
go mod tidy
,go test ./...
all work.A downside is vscode/gopls does not ignore the contents, and on my machine maxes out cpu. Best way I have of fixing this is locally renaming folders/files with a "_" prefix, to make go (and gopls) completely ignore them.
If we do want to delete all modules, we can use #1028
Main Changes
kava
binary replaceskvd
andkvcli