Documentation ¶
Index ¶
- Constants
- Variables
- func DropSectorPieceRefsSnap(ctx context.Context, db *harmonydb.DB, sid abi.SectorID) error
- type EncodeTask
- func (e *EncodeTask) Adder(taskFunc harmonytask.AddTaskFunc)
- func (e *EncodeTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (e *EncodeTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (e *EncodeTask) GetSectorID(db *harmonydb.DB, taskID int64) (*abi.SectorID, error)
- func (e *EncodeTask) GetSpid(db *harmonydb.DB, taskID int64) string
- func (e *EncodeTask) TypeDetails() harmonytask.TaskTypeDetails
- type MoveStorageTask
- func (m *MoveStorageTask) Adder(taskFunc harmonytask.AddTaskFunc)
- func (m *MoveStorageTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (m *MoveStorageTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (m *MoveStorageTask) GetSectorID(db *harmonydb.DB, taskID int64) (*abi.SectorID, error)
- func (m *MoveStorageTask) GetSpid(db *harmonydb.DB, taskID int64) string
- func (m *MoveStorageTask) TypeDetails() harmonytask.TaskTypeDetails
- type ProveTask
- func (p *ProveTask) Adder(taskFunc harmonytask.AddTaskFunc)
- func (p *ProveTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (p *ProveTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (p *ProveTask) GetSectorID(db *harmonydb.DB, taskID int64) (*abi.SectorID, error)
- func (p *ProveTask) GetSpid(db *harmonydb.DB, taskID int64) string
- func (p *ProveTask) TypeDetails() harmonytask.TaskTypeDetails
- type SubmitTask
- func (s *SubmitTask) Adder(taskFunc harmonytask.AddTaskFunc)
- func (s *SubmitTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (s *SubmitTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (s *SubmitTask) GetSectorID(db *harmonydb.DB, taskID int64) (*abi.SectorID, error)
- func (s *SubmitTask) GetSpid(db *harmonydb.DB, taskID int64) string
- func (s *SubmitTask) TypeDetails() harmonytask.TaskTypeDetails
- type SubmitTaskNodeAPI
Constants ¶
View Source
const MinSnapSchedInterval = 10 * time.Second
Variables ¶
View Source
var ImmutableSubmitGate = abi.ChainEpoch(2) // don't submit more than 2 minutes before the deadline becomes immutable
Functions ¶
Types ¶
type EncodeTask ¶
type EncodeTask struct {
// contains filtered or unexported fields
}
func NewEncodeTask ¶
func (*EncodeTask) Adder ¶
func (e *EncodeTask) Adder(taskFunc harmonytask.AddTaskFunc)
func (*EncodeTask) CanAccept ¶
func (e *EncodeTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*EncodeTask) Do ¶
func (e *EncodeTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
func (*EncodeTask) GetSectorID ¶ added in v1.23.1
func (*EncodeTask) TypeDetails ¶
func (e *EncodeTask) TypeDetails() harmonytask.TaskTypeDetails
type MoveStorageTask ¶
type MoveStorageTask struct {
// contains filtered or unexported fields
}
func NewMoveStorageTask ¶
func (*MoveStorageTask) Adder ¶
func (m *MoveStorageTask) Adder(taskFunc harmonytask.AddTaskFunc)
func (*MoveStorageTask) CanAccept ¶
func (m *MoveStorageTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*MoveStorageTask) Do ¶
func (m *MoveStorageTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
func (*MoveStorageTask) GetSectorID ¶ added in v1.23.1
func (*MoveStorageTask) GetSpid ¶
func (m *MoveStorageTask) GetSpid(db *harmonydb.DB, taskID int64) string
func (*MoveStorageTask) TypeDetails ¶
func (m *MoveStorageTask) TypeDetails() harmonytask.TaskTypeDetails
type ProveTask ¶
type ProveTask struct {
// contains filtered or unexported fields
}
func NewProveTask ¶
func (*ProveTask) Adder ¶
func (p *ProveTask) Adder(taskFunc harmonytask.AddTaskFunc)
func (*ProveTask) CanAccept ¶
func (p *ProveTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*ProveTask) GetSectorID ¶ added in v1.23.1
func (*ProveTask) TypeDetails ¶
func (p *ProveTask) TypeDetails() harmonytask.TaskTypeDetails
type SubmitTask ¶
type SubmitTask struct {
// contains filtered or unexported fields
}
func NewSubmitTask ¶
func NewSubmitTask(db *harmonydb.DB, api SubmitTaskNodeAPI, bstore curiochain.CurioBlockstore, sender *message.Sender, as *multictladdr.MultiAddressSelector, cfg *config.CurioConfig) *SubmitTask
func (*SubmitTask) Adder ¶
func (s *SubmitTask) Adder(taskFunc harmonytask.AddTaskFunc)
func (*SubmitTask) CanAccept ¶
func (s *SubmitTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*SubmitTask) Do ¶
func (s *SubmitTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
func (*SubmitTask) GetSectorID ¶ added in v1.23.1
func (*SubmitTask) TypeDetails ¶
func (s *SubmitTask) TypeDetails() harmonytask.TaskTypeDetails
type SubmitTaskNodeAPI ¶
type SubmitTaskNodeAPI interface { StateSectorPartition(ctx context.Context, maddr address.Address, sectorNumber abi.SectorNumber, tsk types.TipSetKey) (*miner.SectorLocation, error) StateGetAllocation(ctx context.Context, clientAddr address.Address, allocationId verifregtypes9.AllocationId, tsk types.TipSetKey) (*verifregtypes9.Allocation, error) ChainHead(ctx context.Context) (*types.TipSet, error) WalletBalance(context.Context, address.Address) (types.BigInt, error) WalletHas(context.Context, address.Address) (bool, error) StateAccountKey(context.Context, address.Address, types.TipSetKey) (address.Address, error) StateLookupID(context.Context, address.Address, types.TipSetKey) (address.Address, error) StateSectorGetInfo(ctx context.Context, maddr address.Address, sectorNumber abi.SectorNumber, tsk types.TipSetKey) (*miner.SectorOnChainInfo, error) StateMinerInfo(context.Context, address.Address, types.TipSetKey) (api.MinerInfo, error) StateMinerAvailableBalance(context.Context, address.Address, types.TipSetKey) (big.Int, error) StateMinerInitialPledgeForSector(ctx context.Context, sectorDuration abi.ChainEpoch, sectorSize abi.SectorSize, verifiedSize uint64, tsk types.TipSetKey) (types.BigInt, error) StateGetActor(ctx context.Context, actor address.Address, tsk types.TipSetKey) (*types.Actor, error) StateVMCirculatingSupplyInternal(ctx context.Context, tsk types.TipSetKey) (api.CirculatingSupply, error) StateMinerProvingDeadline(context.Context, address.Address, types.TipSetKey) (*dline.Info, error) }
Click to show internal directories.
Click to hide internal directories.