scheduler

package
v0.12.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(epoch uint64, proverID uint64, pubSubs *p2p.PubSubs, handleProjectProvers HandleProjectProvers, chainHead <-chan uint64, contractProject ContractProject, contractProvers ContractProvers, projectOffsets *ProjectEpochOffsets) error

func RunLocal added in v0.10.1

func RunLocal(pubSubs *p2p.PubSubs, handleProjectProvers HandleProjectProvers, projectIDs ProjectIDs)

Types

type ContractProject added in v0.10.1

type ContractProject func(projectID, blockNumber uint64) *contract.Project

type ContractProvers added in v0.10.1

type ContractProvers func(blockNumber uint64) []*contract.Prover

type HandleProjectProvers

type HandleProjectProvers func(projectID uint64, proverIDs []uint64)

type LatestProjects added in v0.10.1

type LatestProjects func() []*contract.Project

type ProjectEpochOffsets added in v0.10.3

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

func NewProjectEpochOffsets added in v0.10.3

func NewProjectEpochOffsets(epoch uint64, latestProjects LatestProjects, projectNotification <-chan uint64) *ProjectEpochOffsets

func (*ProjectEpochOffsets) Projects added in v0.10.3

func (pe *ProjectEpochOffsets) Projects(blockNumber uint64) []*ScheduledProject

type ProjectIDs added in v0.10.1

type ProjectIDs func() []uint64

type ScheduledProject added in v0.10.3

type ScheduledProject struct {
	ID                   uint64
	ScheduledBlockNumber uint64
}

Jump to

Keyboard shortcuts

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