difficulty

package
v0.0.0-...-85922c0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cycle = 10

Functions

func BigToCompact

func BigToCompact(n *big.Int) uint32

func CalcNextGlobalRequiredDifficulty

func CalcNextGlobalRequiredDifficulty(t0, t1 int64, globalBits uint32) uint32

func CompactToBig

func CompactToBig(compact uint32) *big.Int

func HashToBig

func HashToBig(buf []byte) *big.Int

func NextMinerDifficulty

func NextMinerDifficulty(baseDifficulty *big.Int, minerPledge, basePledge uint64) (*big.Int, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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