totalweightslotgadget

package
v1.0.0-beta.5 Latest Latest
Warning

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

Go to latest
Published: May 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithSlotFinalizationThreshold

func WithSlotFinalizationThreshold(threshold float64) options.Option[Gadget]

Types

type Gadget

type Gadget struct {
	module.Module
	// contains filtered or unexported fields
}

func New

func New(subModule module.Module, engine *engine.Engine, opts ...options.Option[Gadget]) *Gadget

func (*Gadget) Reset

func (g *Gadget) Reset(targetSlot iotago.SlotIndex)

Reset resets the component to a clean state as if it was created at the last commitment. It accepts a targetSlot as a parameter because it doesn't track that value internally.

Jump to

Keyboard shortcuts

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