assigner

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 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, minterAddr common.Address) error

Types

type DB

type DB interface {
	BlockHead() (uint64, common.Hash, error)
	NBits() (uint32, error)
	UnassignedTask() (uint64, common.Hash, error)
	AssignTask(projectID uint64, taskID common.Hash, prover common.Address) error
	Provers() ([]common.Address, error)
}

Jump to

Keyboard shortcuts

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