state

package
v0.0.0-...-a8fdac7 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Flags

type Flags struct {
	StateFile string
}

func ParseFlags

func ParseFlags() *Flags

type StateInfo

type StateInfo struct {
	// These should never be changed, except by the user.
	StartInt      string `yaml:"start_integer"`
	WriteInterval int    `yaml:"write_interval"`
	// All the following will be written during operation.
	HighInt    string `yaml:"high_integer"`
	HighSteps  uint64 `yaml:"high_steps"`
	RestartInt string `yaml:"restart_integer"`
}

func ParseState

func ParseState(filename string) (*StateInfo, error)

func (*StateInfo) StartFrom

func (s *StateInfo) StartFrom() *big.Int

func (*StateInfo) WriteState

func (s *StateInfo) WriteState(filename string) error

Jump to

Keyboard shortcuts

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