Skip to content
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

fix: Cosmetic: Adding log message for loading source merge genesis json file #384

Merged
merged 2 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -732,7 +732,8 @@ func getNetworkInfo(app *App, ctx *sdk.Context, manifest *UpgradeManifest, expec
var networkInfo *NetworkConfig
var err error
if app.cudosMigrationConfigPath != "" {
app.Logger().Info("cudos merge: loading network config", "file", app.cudosMigrationConfigPath, "hash", app.cudosMigrationConfigSha256)
app.Logger().Info("cudos merge: loading network config", "file", app.cudosMigrationConfigPath, "expected sha256", app.cudosMigrationConfigSha256)

networkInfo, err = LoadNetworkConfigFromFile(app.cudosMigrationConfigPath, &app.cudosMigrationConfigSha256)
if err != nil {
return nil, err
Expand Down
2 changes: 2 additions & 0 deletions app/upgrade_cudos.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ func LoadCudosGenesis(app *App, manifest *UpgradeManifest) (*map[string]interfac
}
manifest.GenesisFileSha256 = actualGenesisSha256Hex

app.Logger().Info("cudos merge: loading merge source genesis json file", "file", app.cudosGenesisPath, "expected sha256", app.cudosGenesisSha256)

_, genDoc, err := genutiltypes.GenesisStateFromGenFile(app.cudosGenesisPath)
if err != nil {
return nil, nil, fmt.Errorf("cudos merge: failed to unmarshal genesis state: %w", err)
Expand Down
Loading