tracker

package
v0.44.19 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: AGPL-3.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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