node

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

README

Node package

This package is responsible for orchestrating the start of various components that make up the TEN node.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteNetworkConfigToDisk

func WriteNetworkConfigToDisk(cfg *config.TenConfig) error

Types

type DockerNode

type DockerNode struct {
	// contains filtered or unexported fields
}

func NewDockerNode

func NewDockerNode(cfg *config.TenConfig, hostImage, enclaveImage, edgelessDBImage string, enclaveDebug bool, pccsAddr string) *DockerNode

func (*DockerNode) Start

func (d *DockerNode) Start() error

func (*DockerNode) Stop

func (d *DockerNode) Stop() error

func (*DockerNode) Upgrade

func (d *DockerNode) Upgrade(networkCfg *NetworkConfig) error

type NetworkConfig

type NetworkConfig struct {
	ManagementContractAddress string
	MessageBusAddress         string
	L1StartHash               string // L1 block hash from which to process for L2 data (mgmt contract deploy block)
}

NetworkConfig is key network information required to start a node connecting to that network. We persist it as a json file on our testnet hosts so that they can read it off when restart/upgrading

func ReadNetworkConfigFromDisk

func ReadNetworkConfigFromDisk() (*NetworkConfig, error)

type Node

type Node interface {
	Start() error
	Stop() error
	Upgrade(networkCfg *NetworkConfig) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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