privtangle

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

privtangle is a cluster of HORNET nodes started for testing purposes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FaucetInfoResponse

type FaucetInfoResponse struct {
	Balance uint64 `json:"balance"`
}

type LogFunc

type LogFunc func(format string, args ...interface{})

type PrivTangle

type PrivTangle struct {
	CooKeyPair1   *cryptolib.KeyPair
	CooKeyPair2   *cryptolib.KeyPair
	FaucetKeyPair *cryptolib.KeyPair
	SnapshotInit  string
	ConfigFile    string
	BaseDir       string
	BasePort      int
	NodeCount     int
	NodeKeyPairs  []*cryptolib.KeyPair
	NodeCommands  []*exec.Cmd
	// contains filtered or unexported fields
}

func Start

func Start(ctx context.Context, baseDir string, basePort, nodeCount int, logfunc LogFunc) *PrivTangle

func (*PrivTangle) L1Config

func (pt *PrivTangle) L1Config(i ...int) l1connection.Config

func (*PrivTangle) NodeMultiAddr

func (pt *PrivTangle) NodeMultiAddr(i int) string

func (*PrivTangle) NodeMultiAddrsWoIndex

func (pt *PrivTangle) NodeMultiAddrsWoIndex(x int) []string

func (*PrivTangle) NodePortCoordinator

func (pt *PrivTangle) NodePortCoordinator(i int) int

func (*PrivTangle) NodePortDashboard

func (pt *PrivTangle) NodePortDashboard(i int) int

func (*PrivTangle) NodePortFaucet

func (pt *PrivTangle) NodePortFaucet(i int) int

func (*PrivTangle) NodePortINX

func (pt *PrivTangle) NodePortINX(i int) int

func (*PrivTangle) NodePortIndexer

func (pt *PrivTangle) NodePortIndexer(i int) int

func (*PrivTangle) NodePortPeering

func (pt *PrivTangle) NodePortPeering(i int) int

func (*PrivTangle) NodePortProfiling

func (pt *PrivTangle) NodePortProfiling(i int) int

func (*PrivTangle) NodePortPrometheus

func (pt *PrivTangle) NodePortPrometheus(i int) int

func (*PrivTangle) NodePortRestAPI

func (pt *PrivTangle) NodePortRestAPI(i int) int

func (*PrivTangle) StartServers added in v1.0.3

func (pt *PrivTangle) StartServers(deleteExisting bool)

func (*PrivTangle) Stop

func (pt *PrivTangle) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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