multiview

package
v0.0.0-...-dbbd7c7 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiView

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

func NewMultiView

func NewMultiView() *MultiView

func (*MultiView) AddView

func (multiView *MultiView) AddView(view View) bool

Only add view if view is validated (at least enough signature)

func (*MultiView) GetAllViewsWithBFS

func (multiView *MultiView) GetAllViewsWithBFS() []View

func (*MultiView) GetBestView

func (multiView *MultiView) GetBestView() View

func (*MultiView) GetFinalView

func (multiView *MultiView) GetFinalView() View

func (*MultiView) GetViewByHash

func (multiView *MultiView) GetViewByHash(hash common.Hash) View

func (*MultiView) Reset

func (multiView *MultiView) Reset()

type View

type View interface {
	GetHash() *common.Hash
	GetPreviousHash() *common.Hash
	GetHeight() uint64
	GetCommittee() []incognitokey.CommitteePublicKey
	GetProposerByTimeSlot(ts int64, version int) incognitokey.CommitteePublicKey
	GetBlock() common.BlockInterface
}

Jump to

Keyboard shortcuts

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