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, nodeConnectionMetrics nodeconnmetrics.NodeConnectionMetrics, shutdownHandler *shutdown.ShutdownHandler, ) (chain.NodeConnection, error)
Types ¶
type LedgerUpdateHandler ¶
type LedgerUpdateHandler func(*nodebridge.LedgerUpdate)
Click to show internal directories.
Click to hide internal directories.