node

package
v1.21.43 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: BSD-3-Clause Imports: 27 Imported by: 0

Documentation

Overview

Copyright (C) 2022-2025, Lux Industries, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022-2025, Lux Industries, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022-2025, Lux Industries, Inc. All rights reserved. See the file LICENSE for licensing terms.

Copyright (C) 2022-2025, Lux Industries, Inc. All rights reserved. See the file LICENSE for licensing terms.

Index

Constants

View Source
const (
	HealthCheckPoolTime = 60 * time.Second
	HealthCheckTimeout  = 3 * time.Minute
)

Variables

This section is empty.

Functions

func AuthorizedAccessFromSettings

func AuthorizedAccessFromSettings(app *application.Lux) bool

func CheckCluster

func CheckCluster(app *application.Lux, clusterName string) error

func CheckClusterExists

func CheckClusterExists(app *application.Lux, clusterName string) (bool, error)

func CheckHostsAreBootstrapped

func CheckHostsAreBootstrapped(hosts []*models.Host) error

func CheckHostsAreHealthy

func CheckHostsAreHealthy(hosts []*models.Host) error

func CheckHostsAreRPCCompatible

func CheckHostsAreRPCCompatible(app *application.Lux, hosts []*models.Host, subnetName string) error

func DisconnectHosts

func DisconnectHosts(hosts []*models.Host)

func GetClusterNodes

func GetClusterNodes(app *application.Lux, clusterName string) ([]string, error)

func GetHostWithCloudID

func GetHostWithCloudID(app *application.Lux, clusterName string, cloudID string) (*models.Host, error)

func GetLuxdEndpoint

func GetLuxdEndpoint(ip string) string

func GetNotBootstrappedNodes

func GetNotBootstrappedNodes(hosts []*models.Host) ([]string, error)

func GetUnhealthyNodes

func GetUnhealthyNodes(hosts []*models.Host) ([]string, error)

func GetWarpRelayerHost

func GetWarpRelayerHost(app *application.Lux, clusterName string) (*models.Host, error)

func LocalStatus

func LocalStatus(
	app *application.Lux,
	clusterName string,
	blockchainName string,
) error

func ParseLuxdOutput

func ParseLuxdOutput(byteValue []byte) (string, uint32, error)

func StartLocalNode

func StartLocalNode(
	app *application.Lux,
	clusterName string,
	luxdBinaryPath string,
	numNodes uint32,
	defaultFlags map[string]interface{},
	connectionSettings localnet.ConnectionSettings,
	nodeSettings []localnet.NodeSetting,
	luxdVersionSetting dependencies.LuxdVersionSettings,
	network models.Network,
) error

func SyncSubnet

func SyncSubnet(app *application.Lux, clusterName, blockchainName string, avoidChecks bool, subnetAliases []string) error

func WaitForHealthyCluster

func WaitForHealthyCluster(
	app *application.Lux,
	clusterName string,
	timeout time.Duration,
	poolTime time.Duration,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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