Documentation ¶
Index ¶
- Variables
- func ComputeEDRLazy1(ctx context.Context, minerAddr address.Address, ts *types.TipSet, ...) (*big.Int, error)
- func ComputeFilPerTiB(ctx context.Context, ts *types.TipSet, api *api.FullNodeStruct) (*float64, error)
- func LoadMinerActor(ctx context.Context, api *api.FullNodeStruct, minerAddr address.Address, ...) (*types.ActorV5, miner.State, error)
- type MinerStats
- type SectorStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var TerminationPenaltyRatio float64 = 0.5
Functions ¶
func ComputeEDRLazy1 ¶
func ComputeFilPerTiB ¶
Types ¶
type MinerStats ¶
type MinerStats struct { MinerInfo *api.MinerInfo Balance *big.Int PenaltyTermination *big.Int ExpectedDailyReward *big.Int PenaltyFaultPerDay *big.Int PledgedFunds *big.Int VestingFunds *big.Int GreenScore *big.Int QualityAdjPower *big.Int LiveSectors *big.Int FaultySectors *big.Int HasMinPower bool }
TODO: add fault info
func ComputeMinerStats ¶
func ComputeMinerStats(ctx context.Context, minerAddr address.Address, ts *types.TipSet, api *api.FullNodeStruct) (*MinerStats, error)
func ComputeMinersStats ¶
func ComputeMinersStats(ctx context.Context, minerAddrs []address.Address, ts *types.TipSet, api *api.FullNodeStruct) (*MinerStats, error)
Click to show internal directories.
Click to hide internal directories.