rewardc

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	POCReward       = uint64(600)
	FutureBlockTime = uint64(18)
	BlockTotal      = 365 * 24 * 60 * 60 / FutureBlockTime

	GenesisDifficulty = uint64(2000000000000000) // Difficulty of the Genesis block.
	MinimumDifficulty = uint64(2000000000000000) // The minimum that the difficulty may ever be.
	GenesisNumber     = 0
	PledgeNumber      = GenesisNumber + 100000000
)

Variables

View Source
var BigOne = big.NewInt(1)

bigOne is 1 represented as a big.Int. It is defined here to avoid the overhead of creating it multiple times.

View Source
var BlockReward = big.NewInt(0).Mul(big.NewInt(0).SetUint64(POCReward), big.NewInt(1e+18))
View Source
var MainPocLimit = new(big.Int).Sub(new(big.Int).Lsh(BigOne, 20), BigOne)

mainPocLimit is the smallest proof of capacity target.

View Source
var Power = big.NewInt(0).Exp(big.NewInt(2), big.NewInt(64), nil)

Functions

func GetReward

func GetReward(height uint64) *big.Int

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