mining

package
v0.0.0-...-a52de19 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEmptyBuffer

func CreateEmptyBuffer(ctx *cl.Context, flags cl.MemFlag, size int) (buffer *cl.MemObject)

CreateEmptyBuffer calls CreateEmptyBuffer on the supplied context and logs and panics if an error occurred

Types

type HashRateReport

type HashRateReport struct {
	MinerID  int
	HashRate float64
}

HashRateReport is sent from the mining routines for giving combined information as output

type Miner

type Miner interface {
	Mine()
}

Miner declares the common 'Mine' method

Jump to

Keyboard shortcuts

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