difficulty

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: LGPL-3.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcDifficulty

func CalcDifficulty(round uint64, parentRound uint64, parentDifficulty *big.Int) *big.Int

round_diff = round - parent_round if [0,3] ,diff =parent_diff + parent_diff/2048*2 if [4,7] ,diff =parent_diff + parent_diff/2048*1 if [8,11] ,diff =parent_diff all follow the formula below diff = (parent_diff +

 ((parent_diff / 2048) * max(2 - (round - parent_round) // 4, -99))
)

Types

This section is empty.

Jump to

Keyboard shortcuts

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