nodeconn

package
v0.6.0-alpha.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

nodeconn package provides an interface to the L1 node (Hornet). This component is responsible for:

  • Protocol details.
  • Block reattachments and promotions.

Index

Constants

This section is empty.

Variables

View Source
var ErrChainShutdown = errors.New("chain is shutting down")

ErrChainShutdown gets returned if the chain is shutting down.

Functions

func New

func New(
	ctx context.Context,
	log *logger.Logger,
	nodeBridge *nodebridge.NodeBridge,
	shutdownHandler *shutdown.ShutdownHandler,
) (chain.NodeConnection, error)

Types

type LedgerUpdateHandler

type LedgerUpdateHandler func(*nodebridge.LedgerUpdate)

Jump to

Keyboard shortcuts

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