core

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2018 License: Apache-2.0 Imports: 33 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	FirstBlockTimeout      = 3 * time.Second
	CooldownTime           = 1000 * time.Millisecond
	ServerShutdownTimeout  = 1000 * time.Millisecond
	LoggingCallerDepth     = 5
	AccountsRingMutexCount = 100
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Kernel added in v0.18.0

type Kernel struct {
	// Expose these public-facing interfaces to allow programmatic extension of the Kernel by other projects
	Emitter    event.Emitter
	Service    *rpc.Service
	Launchers  []process.Launcher
	State      *execution.State
	Blockchain *bcm.Blockchain
	Node       *tendermint.Node
	Transactor *execution.Transactor
	// Time-based UUID randomly generated each time Burrow is started
	RunID  simpleuuid.UUID
	Logger *logging.Logger
	// contains filtered or unexported fields
}

Kernel is the root structure of Burrow

func NewKernel added in v0.18.0

func NewKernel(ctx context.Context, keyClient keys.KeyClient, privValidator tmTypes.PrivValidator,
	genesisDoc *genesis.GenesisDoc, tmConf *tmConfig.Config, rpcConfig *rpc.RPCConfig, keyConfig *keys.KeysConfig,
	keyStore *keys.KeyStore, exeOptions []execution.ExecutionOption, authorizedPeersProvider abci.PeersFilterProvider, logger *logging.Logger) (*Kernel, error)

func (*Kernel) Boot added in v0.18.0

func (kern *Kernel) Boot() error

Boot the kernel starting Tendermint and RPC layers

func (*Kernel) Panic added in v0.20.0

func (kern *Kernel) Panic(err error)

func (*Kernel) Shutdown added in v0.18.0

func (kern *Kernel) Shutdown(ctx context.Context) (err error)

Stop the kernel allowing for a graceful shutdown of components in order

func (*Kernel) WaitForShutdown added in v0.18.0

func (kern *Kernel) WaitForShutdown()

Wait for a graceful shutdown

Jump to

Keyboard shortcuts

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