consensus

package
v3.0.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2019 License: LGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consensus

type Consensus interface {
	Start() error
	Stop()
	Mode() string
}

Consensus is a consensus server.

func New added in v1.1.0

func New(cType Type, baseVariable global.BaseVariable, blkcache blockcache.BlockCache, txPool txpool.TxPool, service p2p.Service) Consensus

New returns the different consensus strategy.

type Type added in v1.1.0

type Type uint8

Type is the type of consensus

const (
	Pob Type
)

The types of consensus

Directories

Path Synopsis
pb

Jump to

Keyboard shortcuts

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