Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //LoopWaitingSeconds data check loop waiting seconds LoopWaitingSeconds = time.Second * 30 // RetrieveParallelNum num RetrieveParallelNum = 16 // DealParallelNum deal thread parallel num DealParallelNum = 16 // RetrieveTryCountMax retrieve try count max RetrieveTryCountMax = 50 // MinerDefaultScore default score MinerDefaultScore = 8 // MinerMaxScore max score MinerMaxScore = 10 // MinerPunishmentScore MinerPunishmentScore = 2 )
Functions ¶
func NewTestMiner ¶
Types ¶
type MineReq ¶
type MineReq struct { InjectNulls abi.ChainEpoch Done func(bool, abi.ChainEpoch, error) }
type Miner ¶
type Miner struct {
// contains filtered or unexported fields
}
func NewMiner ¶
func NewMiner(api api.FullNode, epp gen.WinningPoStProver, addr address.Address, sf *slashfilter.SlashFilter, j journal.Journal) *Miner
func (*Miner) GetBestMiningCandidate ¶
func (m *Miner) GetBestMiningCandidate(ctx context.Context) (*MiningBase, error)
type MiningBase ¶
type MiningBase struct { TipSet *types.TipSet NullRounds abi.ChainEpoch }
Click to show internal directories.
Click to hide internal directories.