csminer

package module
v0.3.3-all Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: GPL-3.0 Imports: 12 Imported by: 4

Documentation

Overview

Copyright 2020 cryptonote.social. All rights reserved. Use of this source code is governed by the license found in the LICENSE file.

Copyright 2020 cryptonote.social. All rights reserved. Use of this source code is governed by the license found in the LICENSE file.

Index

Constants

View Source
const (
	APPLICATION_NAME = "cryptonote.social Monero miner"
	VERSION_STRING   = "0.3.3"
	STATS_WEBPAGE    = "https://cryptonote.social/xmr"

	INVALID_EXCLUDE_FORMAT_MESSAGE = "invalid format for exclude specified. Specify XX-YY, e.g. 11-16 for 11:00am to 4:00pm."
)
View Source
const (
	// Valid machine state changes
	SCREEN_IDLE   = 0
	SCREEN_ACTIVE = 1
	BATTERY_POWER = 2
	AC_POWER      = 3
)

Variables

This section is empty.

Functions

func Mine

func Mine(c *MinerConfig) error

func MultiMain

func MultiMain(s MachineStater, agent string)

Types

type MachineState

type MachineState int

type MachineStater

type MachineStater interface {
	// Returns a channel that produces events when screen state & power state of the machine
	// changes.
	GetMachineStateChannel(saver bool) (chan MachineState, error)
}

type MinerConfig

type MinerConfig struct {
	MachineStater                MachineStater
	Threads                      int
	Username, RigID              string
	Wallet                       string
	Agent                        string
	Saver                        bool
	ExcludeHrStart, ExcludeHrEnd int
	UseTLS                       bool
	AdvancedConfig               string
	Dev                          bool
}

Directories

Path Synopsis
Package crylog provides functionality for logging.
Package crylog provides functionality for logging.
Package rx provides Go access to various randomx library methods.
Package rx provides Go access to various randomx library methods.
stratum
client
package client implements a basic stratum client that listens to jobs and can submit shares
package client implements a basic stratum client that listens to jobs and can submit shares

Jump to

Keyboard shortcuts

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