Documentation
¶
Overview ¶
v2 contains logic and CLI used for genutil by server/v2 / runtime/v2 applications. It contains the AppExporter struct which is used when exporting the application state. Additionally it holds the a custom Export command specific to the v2 application. The rest of the CLI commands are the same as the ones in the genutil module.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppExporter ¶
type AppExporter func( logger log.Logger, height int64, jailAllowedAddrs []string, viper *viper.Viper, ) (ExportedApp, error)
AppExporter is a function that dumps all app state to JSON-serializable structure and returns the current validator set.
type ExportedApp ¶
type ExportedApp struct { // AppState is the application state as JSON. AppState json.RawMessage // Height is the app's latest block height. Height int64 }
ExportedApp represents an exported app state, along with validators, consensus params and latest app height.
Click to show internal directories.
Click to hide internal directories.