activeset

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(
	db sql.Executor,
	kind Kind,
	epoch types.EpochID,
	id types.Hash32,
	weight uint64,
	set []types.ATXID,
) error

Add adds an activeset with weight to the database. It is expected to return error if activeset is not unique per epoch.

func Get

func Get(db sql.Executor, kind Kind, epoch types.EpochID) (types.Hash32, uint64, []types.ATXID, error)

Types

type Kind

type Kind uint8
const (
	Tortoise Kind = iota
	Hare
)

Jump to

Keyboard shortcuts

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