Skip to content

Commit

Permalink
fixed comment
Browse files Browse the repository at this point in the history
  • Loading branch information
brennanjl committed Sep 27, 2024
1 parent ddd887e commit cd5953e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kwild/server/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ func PrepareForMigration(ctx context.Context, kwildCfg *commonCfg.KwildConfig, g
}

// if we reach here, then we still need to download the genesis state
// Therefore, the genesis app hash, validator set, and chain id should not
// already be set in the genesis config.
// Therefore, the genesis app hash, validator set, chain id, initial height,
// and migration info should not already be set in the genesis config.
if genesisCfg.DataAppHash != nil || genesisCfg.Validators != nil || genesisCfg.ChainID != "" ||
genesisCfg.InitialHeight != 0 || genesisCfg.ConsensusParams.Migration.IsMigration() {
return nil, nil, errors.New("migration genesis config should not have app hash, validators, initial height, migration info, or chain id set")
Expand Down

0 comments on commit cd5953e

Please # to comment.