consensus

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2022 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 Service

type Service struct {
	// contains filtered or unexported fields
}

Service is the consensus service.

func New

func New(blockChannel chan *types.Block, consensus *consensus.Consensus, startChan chan struct{}) *Service

New returns consensus service.

func (*Service) Start

func (s *Service) Start() error

Start starts consensus service.

func (*Service) Stop

func (s *Service) Stop() error

Stop stops consensus service.

Jump to

Keyboard shortcuts

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