Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MinerSelector ¶
type MinerSelector struct {
// contains filtered or unexported fields
}
MinerSelector chooses miner under SR2 strategy.
func New ¶
func New(url string, ai *askindex.Runner, cb lotus.ClientBuilder) (*MinerSelector, error)
New returns a new SR2 miner selector.
func (*MinerSelector) GetMiners ¶
func (ms *MinerSelector) GetMiners(n int, f ffs.MinerSelectorFilter) ([]ffs.MinerProposal, error)
GetMiners returns miners from SR2.
Click to show internal directories.
Click to hide internal directories.