settings

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Settings = types.SettingsType{
	MaxDifference: 0,
	Seeds:         "",
	Interval:      10,
	KeepRecent:    0,
}

Functions

func InitializeSettings

func InitializeSettings(binaryPath string, homePath string, poolId int, stateRequests bool, seeds string, chainId string, poolEndpoints string) error

InitializeSettings initializes the required settings for the supervysor. It performs checks on the binaryPath and homePath and sets the seeds value required for the node. It retrieves the pool settings, calculates the keepRecent and maxDifference values, and sets the pruning settings based on these calculated values. If any step encounters an error, it returns the corresponding error message.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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