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.
Click to show internal directories.
Click to hide internal directories.