latestblocktracker

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: Apache-2.0, BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LatestBlockTracker

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

LatestBlockTracker is a component that tracks the ID of the latest Block.

func New

func New() (newLatestBlockTracker *LatestBlockTracker)

New return a new LatestBlockTracker.

func (*LatestBlockTracker) BlockID

func (t *LatestBlockTracker) BlockID() (blockID models.BlockID)

BlockID returns the ID of the latest seen Block.

func (*LatestBlockTracker) Update

func (t *LatestBlockTracker) Update(block *models.Block)

Update updates the latest seen Block.

Jump to

Keyboard shortcuts

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