work

package
v0.0.0-...-0f4ef4b Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2018 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TimestampWord = 2
	Nonce0Word    = 3
	Nonce1Word    = 4
	Nonce2Word    = 5
)

These are the locations of various data inside Work.Data.

Variables

This section is empty.

Functions

This section is empty.

Types

type Work

type Work struct {
	Data         [192]byte
	Target       *big.Int
	JobTime      uint32
	TimeReceived uint32
	IsGetWork    bool
}

Work holds the data returned from getwork and if needed some stratum related values.

func NewWork

func NewWork(data [192]byte, target *big.Int, jobTime uint32, timeReceived uint32,
	isGetWork bool) *Work

NewWork is the constructor for Work.

Jump to

Keyboard shortcuts

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