activitytrackerv1

package
v1.0.0-alpha.7 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivityTracker

type ActivityTracker struct {
	Events *activitytracker.Events
	// contains filtered or unexported fields
}

ActivityTracker is a sybil protection module for tracking activity of committee members.

func NewActivityTracker

func NewActivityTracker(apiProvider iotago.APIProvider) *ActivityTracker

func (*ActivityTracker) MarkSeatActive

func (a *ActivityTracker) MarkSeatActive(seat account.SeatIndex, id iotago.AccountID, seatActivityTime time.Time)

func (*ActivityTracker) OnlineCommittee

func (a *ActivityTracker) OnlineCommittee() ds.Set[account.SeatIndex]

OnlineCommittee returns the set of validators selected to be part of the committee that has been seen recently.

Jump to

Keyboard shortcuts

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