migrator

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CfgMigratorBootstrap configures whether the migration process is bootstrapped.
	CfgMigratorBootstrap = "migratorBootstrap"
	// CfgMigratorStartIndex configures the index of the first milestone to migrate.
	CfgMigratorStartIndex = "migratorStartIndex"
)

Variables

View Source
var ParamsMigrator = &ParametersMigrator{
	ReceiptMaxEntries: migrator.SensibleMaxEntriesCount,
}
View Source
var ParamsReceipts = &ParametersReceipts{}
View Source
var (
	Plugin *app.Plugin
)

Functions

This section is empty.

Types

type ParametersMigrator

type ParametersMigrator struct {
	StateFilePath       string        `default:"migrator.state" usage:"path to the state file of the migrator"`
	ReceiptMaxEntries   int           `usage:"the max amount of entries to embed within a receipt"`
	QueryCooldownPeriod time.Duration `` /* 138-byte string literal not displayed */
}

type ParametersReceipts

type ParametersReceipts struct {
	Validator struct {
		API struct {
			Address string        `default:"http://localhost:14266" usage:"address of the legacy node API to query for white-flag confirmation data"`
			Timeout time.Duration `default:"5s" usage:"timeout of API calls"`
		} `name:"api"`
		Coordinator struct {
			Address         string `` /* 133-byte string literal not displayed */
			MerkleTreeDepth int    `default:"24" usage:"depth of the Merkle tree of the coordinator"`
		}
	}
}

Jump to

Keyboard shortcuts

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