Documentation ¶
Index ¶
- Variables
- func AllocateSectorNumbers(ctx context.Context, a AllocAPI, db *harmonydb.DB, maddr address.Address, ...) ([]abi.SectorNumber, error)
- func AllocationCheck(ctx context.Context, api AllocNodeApi, piece *miner.PieceActivationManifest, ...) (permanent bool, err error)
- func DropSectorPieceRefs(ctx context.Context, db *harmonydb.DB, sid abi.SectorID) error
- func GetDevnet() bool
- func GetTicket(ctx context.Context, api TicketNodeAPI, maddr address.Address) (abi.SealRandomness, abi.ChainEpoch, error)
- func SetDevnet(value bool)
- type AllocAPI
- type AllocNodeApi
- 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) GetSectorID(db *harmonydb.DB, taskID int64) (*abi.SectorID, error)
- func (f *FinalizeTask) GetSpid(db *harmonydb.DB, 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) 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 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) GetSectorID(db *harmonydb.DB, taskID int64) (*abi.SectorID, error)
- func (p *PoRepTask) GetSpid(db *harmonydb.DB, 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) GetSectorID(db *harmonydb.DB, taskID int64) (*abi.SectorID, error)
- func (s *SDRTask) GetSpid(db *harmonydb.DB, 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) GetSectorID(db *harmonydb.DB, taskID int64) (*abi.SectorID, error)
- func (s *SubmitCommitTask) GetSpid(db *harmonydb.DB, 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) GetSectorID(db *harmonydb.DB, taskID int64) (*abi.SectorID, error)
- func (s *SubmitPrecommitTask) GetSpid(db *harmonydb.DB, taskID int64) string
- func (s *SubmitPrecommitTask) TypeDetails() harmonytask.TaskTypeDetails
- type SubmitPrecommitTaskApi
- type SyntheticProofTask
- func (s *SyntheticProofTask) Adder(taskFunc harmonytask.AddTaskFunc)
- func (s *SyntheticProofTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
- func (s *SyntheticProofTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
- func (s *SyntheticProofTask) GetSectorID(db *harmonydb.DB, taskID int64) (*abi.SectorID, error)
- func (s *SyntheticProofTask) GetSpid(db *harmonydb.DB, taskID int64) string
- func (s *SyntheticProofTask) TypeDetails() harmonytask.TaskTypeDetails
- type TicketNodeAPI
- 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) GetSectorID(db *harmonydb.DB, taskID int64) (*abi.SectorID, error)
- func (t *TreeDTask) GetSpid(db *harmonydb.DB, 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) GetSectorID(db *harmonydb.DB, taskID int64) (*abi.SectorID, error)
- func (t *TreeRCTask) GetSpid(db *harmonydb.DB, taskID int64) string
- func (t *TreeRCTask) TypeDetails() harmonytask.TaskTypeDetails
Constants ¶
This section is empty.
Variables ¶
View Source
var IsDevnet = build.BlockDelaySecs < 30
Functions ¶
func AllocateSectorNumbers ¶
func AllocationCheck ¶ added in v1.23.0
func AllocationCheck(ctx context.Context, api AllocNodeApi, piece *miner.PieceActivationManifest, expiration abi.ChainEpoch, miner abi.ActorID, ts *types.TipSet) (permanent bool, err error)
func DropSectorPieceRefs ¶
func GetTicket ¶ added in v1.23.1
func GetTicket(ctx context.Context, api TicketNodeAPI, maddr address.Address) (abi.SealRandomness, abi.ChainEpoch, error)
Types ¶
type AllocNodeApi ¶ added in v1.23.0
type AllocNodeApi interface {
StateGetAllocation(ctx context.Context, clientAddr address.Address, allocationId verifregtypes9.AllocationId, tsk types.TipSetKey) (*verifregtypes9.Allocation, error)
}
type FinalizeTask ¶
type FinalizeTask struct {
// contains filtered or unexported fields
}
func NewFinalizeTask ¶
func NewFinalizeTask(max int, sp *SealPoller, sc *ffi.SealCalls, db *harmonydb.DB, slots *slotmgr.SlotMgr) *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) GetSectorID ¶ added in v1.23.1
func (*FinalizeTask) GetSpid ¶ added in v1.22.1
func (f *FinalizeTask) GetSpid(db *harmonydb.DB, 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) GetSectorID ¶ added in v1.23.1
func (*MoveStorageTask) GetSpid ¶ added in v1.22.1
func (m *MoveStorageTask) GetSpid(db *harmonydb.DB, 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) GetSectorID ¶ added in v1.23.1
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) GetSectorID ¶ added in v1.23.1
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) StateMinerInitialPledgeForSector(ctx context.Context, sectorDuration abi.ChainEpoch, sectorSize abi.SectorSize, verifiedSize uint64, tsk types.TipSetKey) (types.BigInt, 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) GetSectorID ¶ added in v1.23.1
func (*SubmitCommitTask) GetSpid ¶ added in v1.22.1
func (s *SubmitCommitTask) GetSpid(db *harmonydb.DB, 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) GetSectorID ¶ added in v1.23.1
func (*SubmitPrecommitTask) GetSpid ¶ added in v1.22.1
func (s *SubmitPrecommitTask) GetSpid(db *harmonydb.DB, 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 SyntheticProofTask ¶ added in v1.23.0
type SyntheticProofTask struct {
// contains filtered or unexported fields
}
func NewSyntheticProofTask ¶ added in v1.23.0
func NewSyntheticProofTask(sp *SealPoller, db *harmonydb.DB, sc *ffi.SealCalls, maxSynths int) *SyntheticProofTask
func (*SyntheticProofTask) Adder ¶ added in v1.23.0
func (s *SyntheticProofTask) Adder(taskFunc harmonytask.AddTaskFunc)
func (*SyntheticProofTask) CanAccept ¶ added in v1.23.0
func (s *SyntheticProofTask) CanAccept(ids []harmonytask.TaskID, engine *harmonytask.TaskEngine) (*harmonytask.TaskID, error)
func (*SyntheticProofTask) Do ¶ added in v1.23.0
func (s *SyntheticProofTask) Do(taskID harmonytask.TaskID, stillOwned func() bool) (done bool, err error)
func (*SyntheticProofTask) GetSectorID ¶ added in v1.23.1
func (*SyntheticProofTask) GetSpid ¶ added in v1.23.0
func (s *SyntheticProofTask) GetSpid(db *harmonydb.DB, taskID int64) string
func (*SyntheticProofTask) TypeDetails ¶ added in v1.23.0
func (s *SyntheticProofTask) TypeDetails() harmonytask.TaskTypeDetails
type TicketNodeAPI ¶ added in v1.23.1
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) GetSectorID ¶ added in v1.23.1
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) GetSectorID ¶ added in v1.23.1
func (*TreeRCTask) GetSpid ¶ added in v1.22.1
func (t *TreeRCTask) GetSpid(db *harmonydb.DB, taskID int64) string
func (*TreeRCTask) TypeDetails ¶
func (t *TreeRCTask) TypeDetails() harmonytask.TaskTypeDetails
Click to show internal directories.
Click to hide internal directories.