Documentation ¶
Index ¶
- func AllocateSectorNumbers(ctx context.Context, a AllocAPI, db *harmonydb.DB, maddr address.Address, ...) ([]abi.SectorNumber, error)
- func DropSectorPieceRefs(ctx context.Context, db *harmonydb.DB, sid abi.SectorID) error
- func GetDevnet() bool
- func SetDevnet(value bool)
- type AllocAPI
- type FinalizeTask
- func (f *FinalizeTask) Adder(taskFunc harmonytask.AddTaskFunc)
- func (f *FinalizeTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (f *FinalizeTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (f *FinalizeTask) GetSpid(taskID int64) string
- func (f *FinalizeTask) 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) GetSpid(taskID int64) string
- func (m *MoveStorageTask) TypeDetails() harmonytask.TaskTypeDetails
- type PoRepAPI
- type PoRepTask
- func (p *PoRepTask) Adder(taskFunc harmonytask.AddTaskFunc)
- func (p *PoRepTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (p *PoRepTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (p *PoRepTask) GetSpid(taskID int64) string
- func (p *PoRepTask) TypeDetails() harmonytask.TaskTypeDetails
- type SDRAPI
- type SDRTask
- func (s *SDRTask) Adder(taskFunc harmonytask.AddTaskFunc)
- func (s *SDRTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (s *SDRTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (s *SDRTask) GetSpid(taskID int64) string
- func (s *SDRTask) TypeDetails() harmonytask.TaskTypeDetails
- type SealPoller
- type SealPollerAPI
- type SubmitCommitAPI
- type SubmitCommitTask
- func (s *SubmitCommitTask) Adder(taskFunc harmonytask.AddTaskFunc)
- func (s *SubmitCommitTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (s *SubmitCommitTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (s *SubmitCommitTask) GetSpid(taskID int64) string
- func (s *SubmitCommitTask) TypeDetails() harmonytask.TaskTypeDetails
- type SubmitPrecommitTask
- func (s *SubmitPrecommitTask) Adder(taskFunc harmonytask.AddTaskFunc)
- func (s *SubmitPrecommitTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (s *SubmitPrecommitTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (s *SubmitPrecommitTask) GetSpid(taskID int64) string
- func (s *SubmitPrecommitTask) TypeDetails() harmonytask.TaskTypeDetails
- type SubmitPrecommitTaskApi
- type TreeDTask
- func (t *TreeDTask) Adder(taskFunc harmonytask.AddTaskFunc)
- func (t *TreeDTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (t *TreeDTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (t *TreeDTask) GetSpid(taskID int64) string
- func (t *TreeDTask) TypeDetails() harmonytask.TaskTypeDetails
- type TreeRCTask
- func (t *TreeRCTask) Adder(taskFunc harmonytask.AddTaskFunc)
- func (t *TreeRCTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (t *TreeRCTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (t *TreeRCTask) GetSpid(taskID int64) string
- func (t *TreeRCTask) TypeDetails() harmonytask.TaskTypeDetails
- type UrlPieceReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocateSectorNumbers ¶
func DropSectorPieceRefs ¶
Types ¶
type FinalizeTask ¶
type FinalizeTask struct {
// contains filtered or unexported fields
}
func NewFinalizeTask ¶
func NewFinalizeTask(max int, sp *SealPoller, sc *ffi.SealCalls, db *harmonydb.DB) *FinalizeTask
func (*FinalizeTask) Adder ¶
func (f *FinalizeTask) Adder(taskFunc harmonytask.AddTaskFunc)
func (*FinalizeTask) CanAccept ¶
func (f *FinalizeTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*FinalizeTask) Do ¶
func (f *FinalizeTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
func (*FinalizeTask) GetSpid ¶ added in v1.22.1
func (f *FinalizeTask) GetSpid(taskID int64) string
func (*FinalizeTask) TypeDetails ¶
func (f *FinalizeTask) TypeDetails() harmonytask.TaskTypeDetails
type MoveStorageTask ¶
type MoveStorageTask struct {
// contains filtered or unexported fields
}
func NewMoveStorageTask ¶
func NewMoveStorageTask(sp *SealPoller, sc *ffi2.SealCalls, db *harmonydb.DB, max int) *MoveStorageTask
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) GetSpid ¶ added in v1.22.1
func (m *MoveStorageTask) GetSpid(taskID int64) string
func (*MoveStorageTask) TypeDetails ¶
func (m *MoveStorageTask) TypeDetails() harmonytask.TaskTypeDetails
type PoRepTask ¶
type PoRepTask struct {
// contains filtered or unexported fields
}
func NewPoRepTask ¶
func (*PoRepTask) Adder ¶
func (p *PoRepTask) Adder(taskFunc harmonytask.AddTaskFunc)
func (*PoRepTask) CanAccept ¶
func (p *PoRepTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*PoRepTask) TypeDetails ¶
func (p *PoRepTask) TypeDetails() harmonytask.TaskTypeDetails
type SDRTask ¶
type SDRTask struct {
// contains filtered or unexported fields
}
func NewSDRTask ¶
func (*SDRTask) Adder ¶
func (s *SDRTask) Adder(taskFunc harmonytask.AddTaskFunc)
func (*SDRTask) CanAccept ¶
func (s *SDRTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*SDRTask) TypeDetails ¶
func (s *SDRTask) TypeDetails() harmonytask.TaskTypeDetails
type SealPoller ¶
type SealPoller struct {
// contains filtered or unexported fields
}
func NewPoller ¶
func NewPoller(db *harmonydb.DB, api SealPollerAPI) *SealPoller
func (*SealPoller) RunPoller ¶
func (s *SealPoller) RunPoller(ctx context.Context)
type SealPollerAPI ¶
type SealPollerAPI interface { StateSectorPreCommitInfo(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) (*miner.SectorPreCommitOnChainInfo, error) StateSectorGetInfo(ctx context.Context, maddr address.Address, sectorNumber abi.SectorNumber, tsk types.TipSetKey) (*miner.SectorOnChainInfo, error) ChainHead(context.Context) (*types.TipSet, error) }
type SubmitCommitAPI ¶
type SubmitCommitAPI interface { ChainHead(context.Context) (*types.TipSet, error) StateMinerInfo(context.Context, address.Address, types.TipSetKey) (api.MinerInfo, error) StateMinerInitialPledgeCollateral(context.Context, address.Address, miner.SectorPreCommitInfo, types.TipSetKey) (big.Int, error) StateSectorPreCommitInfo(context.Context, address.Address, abi.SectorNumber, types.TipSetKey) (*miner.SectorPreCommitOnChainInfo, error) StateGetAllocation(ctx context.Context, clientAddr address.Address, allocationId verifregtypes9.AllocationId, tsk types.TipSetKey) (*verifregtypes9.Allocation, error) StateGetAllocationIdForPendingDeal(ctx context.Context, dealId abi.DealID, tsk types.TipSetKey) (verifregtypes9.AllocationId, error) StateMinerAvailableBalance(context.Context, address.Address, types.TipSetKey) (big.Int, error) ctladdr.NodeApi }
type SubmitCommitTask ¶
type SubmitCommitTask struct {
// contains filtered or unexported fields
}
func NewSubmitCommitTask ¶
func NewSubmitCommitTask(sp *SealPoller, db *harmonydb.DB, api SubmitCommitAPI, sender *message.Sender, as *multictladdr.MultiAddressSelector, cfg *config.CurioConfig) *SubmitCommitTask
func (*SubmitCommitTask) Adder ¶
func (s *SubmitCommitTask) Adder(taskFunc harmonytask.AddTaskFunc)
func (*SubmitCommitTask) CanAccept ¶
func (s *SubmitCommitTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*SubmitCommitTask) Do ¶
func (s *SubmitCommitTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
func (*SubmitCommitTask) GetSpid ¶ added in v1.22.1
func (s *SubmitCommitTask) GetSpid(taskID int64) string
func (*SubmitCommitTask) TypeDetails ¶
func (s *SubmitCommitTask) TypeDetails() harmonytask.TaskTypeDetails
type SubmitPrecommitTask ¶
type SubmitPrecommitTask struct { CollateralFromMinerBalance bool DisableCollateralFallback bool // contains filtered or unexported fields }
func NewSubmitPrecommitTask ¶
func NewSubmitPrecommitTask(sp *SealPoller, db *harmonydb.DB, api SubmitPrecommitTaskApi, sender *message.Sender, as *multictladdr.MultiAddressSelector, maxFee types.FIL, CollateralFromMinerBalance, DisableCollateralFallback bool) *SubmitPrecommitTask
func (*SubmitPrecommitTask) Adder ¶
func (s *SubmitPrecommitTask) Adder(taskFunc harmonytask.AddTaskFunc)
func (*SubmitPrecommitTask) CanAccept ¶
func (s *SubmitPrecommitTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*SubmitPrecommitTask) Do ¶
func (s *SubmitPrecommitTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
func (*SubmitPrecommitTask) GetSpid ¶ added in v1.22.1
func (s *SubmitPrecommitTask) GetSpid(taskID int64) string
func (*SubmitPrecommitTask) TypeDetails ¶
func (s *SubmitPrecommitTask) TypeDetails() harmonytask.TaskTypeDetails
type SubmitPrecommitTaskApi ¶
type SubmitPrecommitTaskApi interface { ChainHead(context.Context) (*types.TipSet, error) StateMinerPreCommitDepositForPower(context.Context, address.Address, miner.SectorPreCommitInfo, types.TipSetKey) (big.Int, error) StateMinerInfo(context.Context, address.Address, types.TipSetKey) (api.MinerInfo, error) StateNetworkVersion(context.Context, types.TipSetKey) (network.Version, error) StateMinerAvailableBalance(context.Context, address.Address, types.TipSetKey) (big.Int, error) ctladdr.NodeApi }
type TreeDTask ¶
type TreeDTask struct {
// contains filtered or unexported fields
}
func NewTreeDTask ¶
func (*TreeDTask) Adder ¶
func (t *TreeDTask) Adder(taskFunc harmonytask.AddTaskFunc)
func (*TreeDTask) CanAccept ¶
func (t *TreeDTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*TreeDTask) TypeDetails ¶
func (t *TreeDTask) TypeDetails() harmonytask.TaskTypeDetails
type TreeRCTask ¶
type TreeRCTask struct {
// contains filtered or unexported fields
}
func NewTreeRCTask ¶
func NewTreeRCTask(sp *SealPoller, db *harmonydb.DB, sc *ffi2.SealCalls, maxTrees int) *TreeRCTask
func (*TreeRCTask) Adder ¶
func (t *TreeRCTask) Adder(taskFunc harmonytask.AddTaskFunc)
func (*TreeRCTask) CanAccept ¶
func (t *TreeRCTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*TreeRCTask) Do ¶
func (t *TreeRCTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
func (*TreeRCTask) GetSpid ¶ added in v1.22.1
func (t *TreeRCTask) GetSpid(taskID int64) string
func (*TreeRCTask) TypeDetails ¶
func (t *TreeRCTask) TypeDetails() harmonytask.TaskTypeDetails
type UrlPieceReader ¶
type UrlPieceReader struct { Url string RawSize int64 // the exact number of bytes read, if we read more or less that's an error // contains filtered or unexported fields }
func (*UrlPieceReader) Close ¶
func (u *UrlPieceReader) Close() error
Click to show internal directories.
Click to hide internal directories.