sr2

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: 14 Imported by: 0

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, 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.

func (*MinerSelector) GetReplicationFactor added in v0.6.10

func (ms *MinerSelector) GetReplicationFactor() (int, error)

GetReplicationFactor returns the current replication factor of the remote configuration.

Jump to

Keyboard shortcuts

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