bootstrap

package
v1.3.13 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Node

type Node struct {
	govnr.TreeSupervisor
	// contains filtered or unexported fields
}

func NewNode

func NewNode(nodeConfig config.NodeConfig, logger log.Logger) *Node

func (*Node) GracefulShutdown

func (n *Node) GracefulShutdown(shutdownContext context.Context)

type NodeLogic

type NodeLogic interface {
	govnr.ShutdownWaiter
	PublicApi() services.PublicApi
}

func NewNodeLogic

func NewNodeLogic(parentCtx context.Context,
	gossipTransport gossipAdapter.Transport,
	blockPersistence blockStorageAdapter.BlockPersistence,
	statePersistence stateStorageAdapter.StatePersistence,
	stateBlockHeightReporter stateStorageAdapter.BlockHeightReporter,
	transactionPoolBlockHeightReporter transactionpool.BlockHeightReporter,
	maybeClock txPoolAdapter.Clock, nativeCompiler nativeProcessorAdapter.Compiler,
	managementProvider management.Provider,
	logger log.Logger, metricRegistry metric.Registry, nodeConfig config.NodeConfig,
	ethereumConnection ethereumAdapter.EthereumConnection) NodeLogic

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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