thresholdblockgadget

package
v1.0.0-alpha.14 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithAcceptanceThreshold

func WithAcceptanceThreshold(acceptanceThreshold float64) options.Option[Gadget]

func WithConfirmationRatificationThreshold

func WithConfirmationRatificationThreshold(confirmationRatificationThreshold iotago.SlotIndex) options.Option[Gadget]

func WithConfirmationThreshold

func WithConfirmationThreshold(confirmationThreshold float64) options.Option[Gadget]

Types

type Gadget

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

func New

func New(subModule module.Module, blockCache *blocks.Blocks, seatManager seatmanager.SeatManager, errorHandler func(error), opts ...options.Option[Gadget]) *Gadget

func (*Gadget) Events

func (g *Gadget) Events() *blockgadget.Events

func (*Gadget) Reset

func (g *Gadget) Reset()

Reset resets the component to a clean state as if it was created at the last commitment.

func (*Gadget) SetAccepted

func (g *Gadget) SetAccepted(block *blocks.Block) bool

func (*Gadget) TrackWitnessWeight

func (g *Gadget) TrackWitnessWeight(votingBlock *blocks.Block)

Jump to

Keyboard shortcuts

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