sol

package
v0.0.23 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: Unlicense Imports: 5 Imported by: 0

Documentation

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{'s', 'o', 'l', 1}

Magic is the marker for packets containing a solution

Functions

func Encode

func Encode(nonce uint64, uuid uint64, mb *wire.BlockHeader) []byte

Encode a message for a solution

Types

type Solution

type Solution struct {
	Nonce uint64
	UUID  uint64
	// *wire.Block
	Bytes []byte
}

func (*Solution) Decode

func (s *Solution) Decode() (mb *wire.BlockHeader, e error)

Decode an encoded solution message to a wire.BlockHeader

Jump to

Keyboard shortcuts

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