external

package
v0.0.0-...-37e6da2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Factory

func Factory(
	params *consensus.Params,
) (consensus.Consensus, error)

Factory implements the base factory method

Types

type External

type External struct {
	Grpc *grpc.Server
	// contains filtered or unexported fields
}

func (*External) Close

func (d *External) Close() error

func (*External) GetBlockCreator

func (d *External) GetBlockCreator(header *types.Header) (types.Address, error)

func (*External) GetSyncProgression

func (d *External) GetSyncProgression() *progress.Progression

func (*External) Initialize

func (d *External) Initialize() error

Initialize initializes the consensus

func (*External) Multicast

func (d *External) Multicast(msg *proto.Message)

func (*External) PreCommitState

func (d *External) PreCommitState(_header *types.Header, _txn *state.Transition) error

PreCommitState a hook to be called before finalizing state transition on inserting block

func (*External) ProcessHeaders

func (d *External) ProcessHeaders(headers []*types.Header) error

func (*External) Start

func (d *External) Start() error

Start starts the consensus mechanism

func (*External) VerifyHeader

func (d *External) VerifyHeader(header *types.Header) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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