package
1.15.2
Repository: https://github.com/ethereum/go-ethereum.git
Documentation: pkg.go.dev

# Functions

CalcDifficulty is the difficulty adjustment algorithm.
CalcDifficultyFrontierU256 is the difficulty adjustment algorithm.
CalcDifficultyHomesteadU256 is the difficulty adjustment algorithm.
MakeDifficultyCalculatorU256 creates a difficultyCalculator with the given bomb-delay.
NewFakeDelayer creates a ethash consensus engine with a fake PoW scheme that accepts all blocks as valid, but delays verifications by some time, though they still have to conform to the Ethereum consensus rules.
NewFakeFailer creates a ethash consensus engine with a fake PoW scheme that accepts all blocks as valid apart from the single one specified, though they still have to conform to the Ethereum consensus rules.
NewFaker creates an ethash consensus engine with a fake PoW scheme that accepts all blocks' seal as valid, though they still have to conform to the Ethereum consensus rules.
NewFullFaker creates an ethash consensus engine with a full fake scheme that accepts all blocks as valid, without checking any consensus rules whatsoever.

# Variables

Block reward in wei for successfully mining a block upward from Byzantium.
Block reward in wei for successfully mining a block upward from Constantinople.
Block reward in wei for successfully mining a block.
Exported for fuzzing.

# Structs

Ethash is a consensus engine based on proof-of-work implementing the ethash algorithm.