slotqueue

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: GPL-3.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 Duty

type Duty struct {
	NodeID uint64
	Duty   *ethpb.DutiesResponse_Duty
	// ValidatorPK is the validator's public key
	ValidatorPK *bls.PublicKey
	// ShareSK is this node's share secret key
	ShareSK   *bls.SecretKey
	Committee map[uint64]*proto.Node
}

Duty struct TODO: need to remove

type Queue

type Queue interface {
	// Next returns the next slot with its duties at its time
	Next(pubKey []byte) (uint64, *ethpb.DutiesResponse_Duty, bool, error)

	// Schedule schedules execution of the given slot and puts it into the queue
	Schedule(pubKey []byte, slot uint64, duty *ethpb.DutiesResponse_Duty) error
}

Queue represents the behavior of the slot queue

func New

func New(network core.Network) Queue

New is the constructor of queue

Jump to

Keyboard shortcuts

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