import "github.com/textileio/powergate/ffs/minerselector/reptop"
type RepTop struct {
// contains filtered or unexported fields
}
RepTop is a ffs.MinerSelector implementation that returns the top N miners from a Reputations Module and an Ask Index.
func New(cb lotus.ClientBuilder, rm *reputation.Module, ai *askRunner.Runner) *RepTop
New returns a new RetTop instance that uses the specified Reputation Module to select miners and the AskIndex for their epoch prices.
func (rt *RepTop) GetMiners(n int, f ffs.MinerSelectorFilter) ([]ffs.MinerProposal, error)
GetMiners returns n miners using the configured Reputation Module and Ask Index.
Package reptop imports 11 packages (graph) and is imported by 2 packages. Updated 2021-01-27. Refresh now. Tools for package owners.