lastinfo

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LastInfo

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

func NewLastInfo

func NewLastInfo(store store.Store) *LastInfo

func (*LastInfo) BlockHash

func (li *LastInfo) BlockHash() hash.Hash

func (*LastInfo) BlockHeight

func (li *LastInfo) BlockHeight() uint32

func (*LastInfo) BlockTime

func (li *LastInfo) BlockTime() time.Time

func (*LastInfo) Certificate

func (li *LastInfo) Certificate() *block.Certificate

func (*LastInfo) RestoreLastInfo

func (li *LastInfo) RestoreLastInfo(committeeSize int) (committee.Committee, error)

func (*LastInfo) SetBlockHash

func (li *LastInfo) SetBlockHash(lastBlockHash hash.Hash)

func (*LastInfo) SetBlockHeight

func (li *LastInfo) SetBlockHeight(lastBlockHeight uint32)

func (*LastInfo) SetBlockTime

func (li *LastInfo) SetBlockTime(lastBlockTime time.Time)

func (*LastInfo) SetCertificate

func (li *LastInfo) SetCertificate(lastCertificate *block.Certificate)

func (*LastInfo) SetSortitionSeed

func (li *LastInfo) SetSortitionSeed(lastSortitionSeed sortition.VerifiableSeed)

func (*LastInfo) SortitionSeed

func (li *LastInfo) SortitionSeed() sortition.VerifiableSeed

Jump to

Keyboard shortcuts

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