totalweightslotgadget

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 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 IsThresholdReached

func IsThresholdReached(weight, otherWeight int64, threshold float64) bool

func WithSlotConfirmationThreshold

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

Types

type Gadget

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

func (*Gadget) Events

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

func (*Gadget) LastConfirmedSlot

func (g *Gadget) LastConfirmedSlot() slot.Index

Jump to

Keyboard shortcuts

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