pob

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2018 License: LGPL-3.0 Imports: 22 Imported by: 2

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 NewPoB

func NewPoB(account *account.Account, baseVariable global.BaseVariable, blockCache blockcache.BlockCache, txPool txpool.TxPool, p2pService p2p.Service) *PoB

NewPoB init a new PoB.

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

type StaticProperty

type StaticProperty struct {
	NumberOfWitnesses int64
	WitnessList       []string
	Watermark         map[string]int64
	// contains filtered or unexported fields
}

StaticProperty handles the the static property of pob.

Jump to

Keyboard shortcuts

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