tracker

package
v0.33.10-temp-script-i... Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewestBlockTracker

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

NewestBlockTracker is a helper structure which keeps track of the newest block (by view) in concurrency safe way.

func NewNewestBlockTracker

func NewNewestBlockTracker() *NewestBlockTracker

func (*NewestBlockTracker) NewestBlock

func (t *NewestBlockTracker) NewestBlock() *model.Block

NewestBlock returns the newest block (by view) tracked. Concurrently safe.

func (*NewestBlockTracker) Track

func (t *NewestBlockTracker) Track(block *model.Block) bool

Track updates local state of newestBlock if the provided instance is newer (by view) Concurrently safe.

type NewestPartialTcTracker

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

NewestPartialTcTracker tracks the newest partial TC (by view) in a concurrency safe way.

func NewNewestPartialTcTracker

func NewNewestPartialTcTracker() *NewestPartialTcTracker

func (*NewestPartialTcTracker) NewestPartialTc

func (t *NewestPartialTcTracker) NewestPartialTc() *hotstuff.PartialTcCreated

NewestPartialTc returns the newest partial TC (by view) tracked. Concurrently safe.

func (*NewestPartialTcTracker) Track

Track updates local state of newestPartialTc if the provided instance is newer (by view) Concurrently safe.

type NewestQCTracker

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

NewestQCTracker is a helper structure which keeps track of the newest QC(by view) in concurrency safe way.

func NewNewestQCTracker

func NewNewestQCTracker() *NewestQCTracker

func (*NewestQCTracker) NewestQC

func (t *NewestQCTracker) NewestQC() *flow.QuorumCertificate

NewestQC returns the newest QC(by view) tracked. Concurrently safe.

func (*NewestQCTracker) Track

Track updates local state of NewestQC if the provided instance is newer(by view) Concurrently safe

type NewestTCTracker

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

NewestTCTracker is a helper structure which keeps track of the newest TC(by view) in concurrency safe way.

func NewNewestTCTracker

func NewNewestTCTracker() *NewestTCTracker

func (*NewestTCTracker) NewestTC

func (t *NewestTCTracker) NewestTC() *flow.TimeoutCertificate

NewestTC returns the newest TC(by view) tracked. Concurrently safe.

func (*NewestTCTracker) Track

Track updates local state of NewestTC if the provided instance is newer(by view) Concurrently safe.

Jump to

Keyboard shortcuts

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