reptop

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2020 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL