lastinfo

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: MIT Imports: 12 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() *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() *certificate.BlockCertificate

func (*LastInfo) RestoreLastInfo

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

func (*LastInfo) SortitionSeed

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

func (*LastInfo) UpdateBlockHash added in v0.15.0

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

func (*LastInfo) UpdateBlockTime added in v0.15.0

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

func (*LastInfo) UpdateCertificate added in v0.15.0

func (li *LastInfo) UpdateCertificate(lastCertificate *certificate.BlockCertificate)

func (*LastInfo) UpdateSortitionSeed added in v0.15.0

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

func (*LastInfo) UpdateValidators added in v0.15.0

func (li *LastInfo) UpdateValidators(vals []*validator.Validator)

func (*LastInfo) Validators added in v0.15.0

func (li *LastInfo) Validators() []*validator.Validator

Jump to

Keyboard shortcuts

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