unseal

package
v1.24.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0, MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const MinSchedInterval = 120 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskUnsealDecode

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

func NewTaskUnsealDecode

func NewTaskUnsealDecode(sc *ffi.SealCalls, db *harmonydb.DB, max int, api UnsealSDRApi) *TaskUnsealDecode

func (*TaskUnsealDecode) Adder

func (t *TaskUnsealDecode) Adder(taskFunc harmonytask.AddTaskFunc)

func (*TaskUnsealDecode) CanAccept

func (*TaskUnsealDecode) Do

func (t *TaskUnsealDecode) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)

func (*TaskUnsealDecode) GetSectorID

func (t *TaskUnsealDecode) GetSectorID(db *harmonydb.DB, taskID int64) (*abi.SectorID, error)

func (*TaskUnsealDecode) GetSpid

func (t *TaskUnsealDecode) GetSpid(db *harmonydb.DB, taskID int64) string

func (*TaskUnsealDecode) TypeDetails

func (t *TaskUnsealDecode) TypeDetails() harmonytask.TaskTypeDetails

type TaskUnsealSdr

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

func NewTaskUnsealSDR

func NewTaskUnsealSDR(sc *ffi.SealCalls, db *harmonydb.DB, max taskhelp.Limiter, api UnsealSDRApi) *TaskUnsealSdr

func (*TaskUnsealSdr) Adder

func (t *TaskUnsealSdr) Adder(taskFunc harmonytask.AddTaskFunc)

func (*TaskUnsealSdr) CanAccept

func (t *TaskUnsealSdr) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)

func (*TaskUnsealSdr) Do

func (t *TaskUnsealSdr) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)

func (*TaskUnsealSdr) GetSectorID

func (t *TaskUnsealSdr) GetSectorID(db *harmonydb.DB, taskID int64) (*abi.SectorID, error)

func (*TaskUnsealSdr) GetSpid

func (t *TaskUnsealSdr) GetSpid(db *harmonydb.DB, taskID int64) string

func (*TaskUnsealSdr) TypeDetails

func (t *TaskUnsealSdr) TypeDetails() harmonytask.TaskTypeDetails

type UnsealSDRApi

type UnsealSDRApi interface {
	StateSectorGetInfo(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) (*miner.SectorOnChainInfo, error)
}

Jump to

Keyboard shortcuts

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