package
5.6.3-darwinv2-rc0+incompatible
Repository: https://github.com/scroll-tech/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.
MakeCache generates a new ethash cache and optionally stores it to disk.
MakeDataset generates a new ethash dataset and optionally stores it to disk.
MakeDifficultyCalculatorU256 creates a difficultyCalculator with the given bomb-delay.
New creates a full sized ethash PoW scheme and starts a background thread for remote mining, also optionally notifying a batch of remote services of new work packages.
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 a 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.
NewShared creates a full sized ethash PoW shared between all requesters running in the same process.
NewTester creates a small sized ethash PoW scheme useful only for testing purposes.
SeedHash is the seed to use for generating a verification cache and the mining dataset.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# 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.
No description provided by the author
No description provided by the author
Block reward in wei for successfully mining a block.
Exported for fuzzing.
No description provided by the author
# Type aliases
Mode defines the type and amount of PoW verification an ethash engine makes.