nodeconn

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 27 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.

View Source
var ErrOperationAborted = errors.New("operation was aborted")

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