consensus

package
v3.11.2 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2023 License: LGPL-3.0 Imports: 4 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()
}

Consensus is a consensus server.

func New

func New(cType Type, conf *common.Config, chainBase *chainbase.ChainBase, service p2p.Service) Consensus

New returns the different consensus strategy.

type Type

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