reptop

package
v2.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: MIT Imports: 11 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

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