mining

package
v0.0.0-...-163fc3c Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurableSpaceKeeper

type ConfigurableSpaceKeeper struct {
	spacekeeper.SpaceKeeper
}

func (*ConfigurableSpaceKeeper) AvailableDiskSize

func (csk *ConfigurableSpaceKeeper) AvailableDiskSize() (uint64, error)

func (*ConfigurableSpaceKeeper) ConfigureByBitLength

func (csk *ConfigurableSpaceKeeper) ConfigureByBitLength(BlCount map[int]int, execPlot, execMine bool, cointype uint32) ([]engine.WorkSpaceInfo, error)

func (*ConfigurableSpaceKeeper) ConfigureByPath

func (csk *ConfigurableSpaceKeeper) ConfigureByPath(paths []string, sizes []uint64, execPlot, execMine, autoCreate bool, cointype uint32) ([]engine.WorkSpaceInfo, error)

func (*ConfigurableSpaceKeeper) ConfigureBySize

func (csk *ConfigurableSpaceKeeper) ConfigureBySize(targetSize uint64, execPlot, execMine bool, cointype uint32) ([]engine.WorkSpaceInfo, error)

func (*ConfigurableSpaceKeeper) Configured

func (csk *ConfigurableSpaceKeeper) Configured() bool

func (*ConfigurableSpaceKeeper) IsCapacityAvailable

func (csk *ConfigurableSpaceKeeper) IsCapacityAvailable(path string, capacity uint64) error

func (*ConfigurableSpaceKeeper) WorkSpaceInfosByDirs

func (csk *ConfigurableSpaceKeeper) WorkSpaceInfosByDirs() (dirs []string, results [][]engine.WorkSpaceInfo, err error)

type SpaceKeeper

type SpaceKeeper interface {
	spacekeeper.SpaceKeeper
	Configured() bool
	ConfigureByBitLength(BlCount map[int]int, execPlot, execMine bool, cointype uint32) ([]engine.WorkSpaceInfo, error)
	ConfigureBySize(targetSize uint64, execPlot, execMine bool, cointype uint32) ([]engine.WorkSpaceInfo, error)
	ConfigureByPath(paths []string, sizes []uint64, execPlot, execMine, autoCreate bool, cointype uint32) ([]engine.WorkSpaceInfo, error)
	AvailableDiskSize() (uint64, error)
	IsCapacityAvailable(path string, capacity uint64) error
	WorkSpaceInfosByDirs() (dirs []string, results [][]engine.WorkSpaceInfo, err error)
}

Jump to

Keyboard shortcuts

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