difficulty

package
v0.0.0-...-00b5140 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Difficulty

type Difficulty int

Difficulty represent a mining difficulty.

var (
	// Current represent the actual mining difficulty.
	Current Difficulty = 1
)

func (*Difficulty) Int

func (d *Difficulty) Int() int

func (*Difficulty) Save

func (d *Difficulty) Save(difficulty int)

func (*Difficulty) Update

func (d *Difficulty) Update(nbTries uint)

Update the difficulty according to the number of tests that were carried out before finding the last block.

Jump to

Keyboard shortcuts

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