refactor(genutil): audit (#16818)
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
|
||||
"github.com/cosmos/cosmos-sdk/client/flags"
|
||||
"github.com/cosmos/cosmos-sdk/server/types"
|
||||
"github.com/cosmos/cosmos-sdk/version"
|
||||
genutiltypes "github.com/cosmos/cosmos-sdk/x/genutil/types"
|
||||
)
|
||||
|
||||
@@ -87,6 +88,10 @@ func ExportCmd(appExporter types.AppExporter, defaultNodeHome string) *cobra.Com
|
||||
return err
|
||||
}
|
||||
|
||||
// set current binary version
|
||||
appGenesis.AppName = version.AppName
|
||||
appGenesis.AppVersion = version.Version
|
||||
|
||||
appGenesis.AppState = exported.AppState
|
||||
appGenesis.InitialHeight = exported.Height
|
||||
appGenesis.Consensus = genutiltypes.NewConsensusGenesis(exported.ConsensusParams, exported.Validators)
|
||||
|
||||
Reference in New Issue
Block a user