Documentation ¶
Index ¶
- Constants
- type FPoStScheduler
- type Miner
- func (m *Miner) AllocatePiece(size uint64) (sectorID uint64, offset uint64, err error)
- func (m *Miner) ForceSectorState(ctx context.Context, id uint64, state api.SectorState) error
- func (m *Miner) GetSectorInfo(sid uint64) (sealing.SectorInfo, error)
- func (m *Miner) ListSectors() ([]sealing.SectorInfo, error)
- func (m *Miner) PledgeSector() error
- func (m *Miner) Run(ctx context.Context) error
- func (m *Miner) SealPiece(ctx context.Context, size uint64, r io.Reader, sectorID uint64, dealID uint64) error
- func (m *Miner) Stop(ctx context.Context) error
- type SectorBuilderEpp
- func (epp *SectorBuilderEpp) ComputeProof(ctx context.Context, ssi sectorbuilder.SortedPublicSectorInfo, rand []byte, ...) ([]byte, error)
- func (epp *SectorBuilderEpp) GenerateCandidates(ctx context.Context, ssi sectorbuilder.SortedPublicSectorInfo, rand []byte) ([]sectorbuilder.EPostCandidate, error)
Constants ¶
View Source
const Inactive = 0
View Source
const StartConfidence = 4 // TODO: config
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FPoStScheduler ¶ added in v0.2.8
type FPoStScheduler struct {
// contains filtered or unexported fields
}
func NewFPoStScheduler ¶ added in v0.2.8
func NewFPoStScheduler(api storageMinerApi, sb sectorbuilder.Interface, actor address.Address, worker address.Address) *FPoStScheduler
func (*FPoStScheduler) Run ¶ added in v0.2.8
func (s *FPoStScheduler) Run(ctx context.Context)
type Miner ¶
type Miner struct {
// contains filtered or unexported fields
}
func (*Miner) AllocatePiece ¶
func (*Miner) ForceSectorState ¶ added in v0.2.5
func (*Miner) GetSectorInfo ¶
func (m *Miner) GetSectorInfo(sid uint64) (sealing.SectorInfo, error)
func (*Miner) ListSectors ¶
func (m *Miner) ListSectors() ([]sealing.SectorInfo, error)
func (*Miner) PledgeSector ¶
type SectorBuilderEpp ¶
type SectorBuilderEpp struct {
// contains filtered or unexported fields
}
func NewElectionPoStProver ¶
func NewElectionPoStProver(sb sectorbuilder.Interface) *SectorBuilderEpp
func (*SectorBuilderEpp) ComputeProof ¶
func (*SectorBuilderEpp) GenerateCandidates ¶
func (epp *SectorBuilderEpp) GenerateCandidates(ctx context.Context, ssi sectorbuilder.SortedPublicSectorInfo, rand []byte) ([]sectorbuilder.EPostCandidate, error)
Click to show internal directories.
Click to hide internal directories.