hashrate

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: Unlicense Imports: 9 Imported by: 0

Documentation

Overview

Package hashrate is a message type for Simplebuffers generated by miners to broadcast an IP address, a count and version number and current height of mining work just completed. This data should be stored in a log file and added together to generate hashrate reporting in nodes when their controller is running

Index

Constants

This section is empty.

Variables

View Source
var F, E, W, I, D, T log.LevelPrinter = log.GetLogPrinterSet(subsystem)
View Source
var Magic = []byte{'h', 'a', 's', 1}

Functions

func Get

func Get(count int32, version int32, height int32, id string) []byte

Types

type Hashrate

type Hashrate struct {
	Time    time.Time
	IP      net.IP
	Count   int
	Version int32
	Height  int32
	Nonce   int32
	ID      string
}

Jump to

Keyboard shortcuts

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