assigner

package
v0.26.3 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(db DB, prv *ecdsa.PrivateKey, chainEndpoint string, retrieve RetrieveTask, minterAddr common.Address, bandwidth int) error

Types

type DB

type DB interface {
	UnassignedTasks(limit int) ([]common.Hash, error)
	AssignTasks(taskIDs []common.Hash) error
	Provers() ([]common.Address, error)
}

type RetrieveTask added in v0.19.0

type RetrieveTask func(taskIDs []common.Hash) ([]*task.Task, error)

Jump to

Keyboard shortcuts

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