tsc

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: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithTimeSinceConfirmationThreshold

func WithTimeSinceConfirmationThreshold(timeSinceConfirmationThreshold time.Duration) options.Option[Manager]

Types

type Manager

type Manager struct {
	sync.Mutex
	// contains filtered or unexported fields
}

Manager is a manager that tracks orphaned blocks.

func New

func New(isBlockAccepted func(models.BlockID) bool, mesh mesh.Mesh, opts ...options.Option[Manager]) *Manager

New returns a new instance of Manager.

func (*Manager) AddBlock

func (o *Manager) AddBlock(block *booker.Block)

func (*Manager) HandleTimeUpdate

func (o *Manager) HandleTimeUpdate(newTime time.Time)

func (*Manager) Size

func (o *Manager) Size() int

Jump to

Keyboard shortcuts

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