Versions in this module Expand all Collapse all v1 v1.0.0 Aug 15, 2021 Changes in this version + var DealParallelNum = 16 + var LoopWaitingSeconds = time.Second * 30 + var MinerDefaultScore = 8 + var MinerMaxScore = 10 + var MinerPunishmentScore = 2 + var RetrieveParallelNum = 16 + var RetrieveTryCountMax = 50 + func NewTestMiner(nextCh <-chan MineReq, addr address.Address) func(api.FullNode, gen.WinningPoStProver) *Miner + type DataRef struct + type MineReq struct + Done func(bool, abi.ChainEpoch, error) + InjectNulls abi.ChainEpoch + type Miner struct + func NewMiner(api api.FullNode, epp gen.WinningPoStProver, addr address.Address, ...) *Miner + func (m *Miner) Address() address.Address + func (m *Miner) GetBestMiningCandidate(ctx context.Context) (*MiningBase, error) + func (m *Miner) Start(ctx context.Context) error + func (m *Miner) Stop(ctx context.Context) error + type MinerData struct + func (m *MinerData) Start(ctx context.Context) error + func (m *MinerData) Stop(ctx context.Context) error + type MiningBase struct + NullRounds abi.ChainEpoch + TipSet *types.TipSet