utils

package
Version: v0.0.0-...-cd31d1c Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2021 License: LGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDifficult

func GetDifficult(time uint64, parentHeader *types.BlockHeader) *big.Int

getDifficult adjust difficult by parent info

func VerifyDifficulty

func VerifyDifficulty(parent *types.BlockHeader, header *types.BlockHeader) error

VerifyDifficulty verify the difficulty of the given block based on parent info

func VerifyHeaderCommon

func VerifyHeaderCommon(header, parent *types.BlockHeader) error

VerifyHeaderCommon verify the height, timestamp and difficulty of the given header based on parent info

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL