cbfttypes

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2019 License: GPL-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 AddValidatorEvent

type AddValidatorEvent struct {
	NodeID discover.NodeID
}

type BlockSignature

type BlockSignature struct {
	SignHash  common.Hash // Signature hash,header[0:32]
	Hash      common.Hash // Block hash,header[:]
	Number    *big.Int
	Signature *common.BlockConfirmSign
}

Block's Signature info

func (*BlockSignature) Copy

func (bs *BlockSignature) Copy() *BlockSignature

type CbftResult

type CbftResult struct {
	Block     *types.Block
	ExtraData []byte
	SyncState chan error
}

type ProducerState

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

func (*ProducerState) Add

func (ps *ProducerState) Add(miner common.Address)

func (*ProducerState) Get

func (ps *ProducerState) Get() (common.Address, int)

func (*ProducerState) Validate

func (ps *ProducerState) Validate(period int) bool

type RemoveValidatorEvent

type RemoveValidatorEvent struct {
	NodeID discover.NodeID
}

type UpdateValidatorEvent

type UpdateValidatorEvent struct{}

Jump to

Keyboard shortcuts

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