node

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Overview

Package node contains a committee node.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

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

Node is the main node.

func NewNode

func NewNode(ctx context.Context, handler metrics.Handler, cfg config.Config) (*Node, error)

NewNode creates a new node.

func (*Node) Address

func (n *Node) Address() common.Address

Address gets the address of the node. This is used for testing.

func (*Node) IPFSAddress

func (n *Node) IPFSAddress() (addresses []string)

IPFSAddress gets the IPFS address of the node.

func (*Node) Start

func (n *Node) Start(parentContext context.Context) error

Start starts the node and all it's auxiliary services.

Jump to

Keyboard shortcuts

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