Skip to content

Commit

Permalink
Cosmetic: Adding log message for loading source merge genesis json file
Browse files Browse the repository at this point in the history
  • Loading branch information
pbukva committed Oct 4, 2024
1 parent 64703cb commit 117f70c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
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

0 comments on commit 117f70c

Please sign in to comment.