slottracker

package
v1.0.0-alpha.23 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlotTracker

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

func NewSlotTracker

func NewSlotTracker() *SlotTracker

func (*SlotTracker) EvictSlot

func (s *SlotTracker) EvictSlot(slotToEvict iotago.SlotIndex)

func (*SlotTracker) TrackVotes

func (s *SlotTracker) TrackVotes(slot iotago.SlotIndex, voterID iotago.AccountID, cutoffIndex iotago.SlotIndex) (prevLatestSlot iotago.SlotIndex, latestSlot iotago.SlotIndex, updated bool)

func (*SlotTracker) Voters

func (s *SlotTracker) Voters(slot iotago.SlotIndex) []iotago.AccountID

Jump to

Keyboard shortcuts

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