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.
Click to show internal directories.
Click to hide internal directories.