v2

package
v0.52.0-beta.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL