pob

package
v3.0.6+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PoB

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

PoB is a struct that handles the consensus logic.

func New added in v1.1.0

func New(conf *common.Config, chainBase *chainbase.ChainBase, txPool txpool.TxPool, p2pService p2p.Service) *PoB

New init a new PoB.

func (*PoB) Mode

func (p *PoB) Mode() string

Mode return the mode of pob.

func (*PoB) RecoverBlock added in v1.1.0

func (p *PoB) RecoverBlock(blk *block.Block) error

RecoverBlock recover block from block cache wal

func (*PoB) Start

func (p *PoB) Start() error

Start make the PoB run.

func (*PoB) Stop

func (p *PoB) Stop()

Stop make the PoB stop.

Jump to

Keyboard shortcuts

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