Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type 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 ¶
func New(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 (*RepTop) GetMiners ¶
func (rt *RepTop) GetMiners(n int, f ffs.MinerSelectorFilter) ([]ffs.MinerProposal, error)
GetMiners returns n miners using the configured Reputation Module and Ask Index.
Click to show internal directories.
Click to hide internal directories.