plot

package
v0.0.0-...-3db2419 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdAndChangeDirToFile

func CmdAndChangeDirToFile(commandName string, params []string)

func GetChieExec

func GetChieExec(ChiaAppPath string) (ChiaExec string)

func GetCurrentPath

func GetCurrentPath() (string, error)

func IsDir

func IsDir(path string) bool

func IsExist

func IsExist(path string) bool

func PathExists

func PathExists(path string) (bool, error)

Types

type Config

type Config struct {
	NumPlots            int    `yaml:"NumPlots"`
	KSize               int    `yaml:"KSize"`
	Stripes             int    `yaml:"Stripes"`
	Buffer              int    `yaml:"Buffer"`
	Threads             int    `yaml:"Threads"`
	Rmulti2             int    `yaml:"Rmulti2"`
	Buckets             int    `yaml:"Buckets"`
	NoBitfield          bool   `yaml:"NoBitfield"`
	Progress            bool   `yaml:"Progress"`
	TempPath            string `yaml:"TempPath"`
	Temp2Path           string `yaml:"Temp2Path"`
	FinalPath           string `yaml:"FinalPath"`
	Total               int    `yaml:"Total"`
	Sleep               int    `yaml:"Sleep"`
	LogPath             string `yaml:"LogPath"`
	FarmePublicKey      string `yaml:"FarmePublicKey"`
	PoolPublicKey       string `yaml:"PoolPublicKey"`
	PoolContractAddress string `yaml:"PoolContractAddress"`
	LocalSk             string `yaml:"LocalSk"`
}

type Plot

type Plot struct {
	LogPath   string
	PlotID    string
	LogFile   string
	Phase     int
	Len       int
	Buckets   int
	Table     int
	EndPhase  int
	PhaseTime [4]int64
	// contains filtered or unexported fields
}

func New

func New() *Plot

func (*Plot) Bladebit

func (p *Plot) Bladebit(config *Config) error

func (*Plot) Chia

func (p *Plot) Chia(config *Config) error

func (*Plot) FastPos

func (p *Plot) FastPos(config *Config) error

func (*Plot) FormatProgressShow

func (p *Plot) FormatProgressShow(line string)

func (*Plot) MakeBladeBit

func (p *Plot) MakeBladeBit(confYaml Config) []string

func (*Plot) MakeChiaPlots

func (p *Plot) MakeChiaPlots(confYaml Config) []string

func (*Plot) MakeChiaPos

func (p *Plot) MakeChiaPos(confYaml Config) []string

func (*Plot) MakeFastPos

func (p *Plot) MakeFastPos(confYaml Config) []string

func (*Plot) Pos

func (p *Plot) Pos(config *Config) error

func (*Plot) RunExec

func (p *Plot) RunExec(ChiaExec, plotnum string, args ...string) (b bool, e error)

Jump to

Keyboard shortcuts

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