package
1.2.2
Repository: https://github.com/classzz/go-classzz-v2.git
Documentation: pkg.go.dev

# Functions

CalcDifficulty is the difficulty adjustment algorithm.
CalcDifficultyFrontierU256 is the difficulty adjustment algorithm.
No description provided by the author
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 Classzz 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 Classzz 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 Classzz 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.

# Constants

2048 520.
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
No description provided by the author

# Variables

Block reward in wei for successfully mining a block.
Exported for fuzzing.
Ethash proof-of-work protocol constants.

# Structs

API exposes ethash related methods for the RPC interface.
Config are the configuration parameters of the ethash.
No description provided by the author
Ethash is a consensus engine based on proof-of-work implementing the ethash algorithm.

# Type aliases

Mode defines the type and amount of PoW verification an ethash engine makes.