util

package
v0.5.0-pre.0 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RewardAddress string
	Password      string
	Proxy         bool
	ProxyURL      string
	PrimeURL      string
	RegionURLs    []string
	ZoneURLs      [][]string
	Location      common.Location
	RunBlake3     bool
}

Config holds the configuration parameters for quai-manager

func LoadConfig

func LoadConfig(path string) (config Config, err error)

LoadConfig reads configuration from file or environment variables.

type MinerSession

type MinerSession struct {

	// Stratum
	sync.Mutex
	// contains filtered or unexported fields
}

func NewMinerConn

func NewMinerConn(endpoint string) (*MinerSession, error)

func (*MinerSession) ListenTCP

func (miner *MinerSession) ListenTCP(updateCh chan *types.Header) error

Reads raw data from TCP connection expecting a header to unmarshal. Puts received header into updateCh.

func (*MinerSession) SendTCPRequest

func (ms *MinerSession) SendTCPRequest(msg jsonrpc.Request) error

Jump to

Keyboard shortcuts

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