Skip to content

Commit

Permalink
server: move const on top of file
Browse files Browse the repository at this point in the history
  • Loading branch information
najeal committed Jul 23, 2024
1 parent a90f84a commit 813533c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ const (
FlagHeight = "height"
FlagForZeroHeight = "for-zero-height"
FlagJailAllowedAddrs = "jail-allowed-addrs"
// minAppVersionExport is the lowest app version where the app version is stored in consensus params and exported via this command.
minAppVersionExport = 2
)

// ExportCmd dumps app state to JSON.
Expand Down Expand Up @@ -95,7 +97,6 @@ func ExportCmd(appExporter types.AppExporter, defaultNodeHome string) *cobra.Com
PubKeyTypes: exported.ConsensusParams.Validator.PubKeyTypes,
},
}
const minAppVersionExport = 2
if appVersion := exported.ConsensusParams.GetVersion().GetAppVersion(); appVersion >= minAppVersionExport {
doc.ConsensusParams.Version.AppVersion = appVersion
}
Expand Down

0 comments on commit 813533c

Please sign in to comment.