Versions in this module Expand all Collapse all v0 v0.0.1 Oct 11, 2024 Changes in this version + var ByzantiumBlockReward = uint256.NewInt(3e+18) + var ConstantinopleBlockReward = uint256.NewInt(2e+18) + var DynamicDifficultyCalculator = makeDifficultyCalculator + var FrontierBlockReward = uint256.NewInt(5e+18) + var FrontierDifficultyCalculator = calcDifficultyFrontier + var HomesteadDifficultyCalculator = calcDifficultyHomestead + func CalcDifficulty(config *params.ChainConfig, time uint64, parent *types.Header) *big.Int + func CalcDifficultyFrontierU256(time uint64, parent *types.Header) *big.Int + func CalcDifficultyHomesteadU256(time uint64, parent *types.Header) *big.Int + func MakeDifficultyCalculatorU256(bombDelay *big.Int) func(time uint64, parent *types.Header) *big.Int + type Ethash struct + func NewFakeDelayer(delay time.Duration) *Ethash + func NewFakeFailer(fail uint64) *Ethash + func NewFaker() *Ethash + func NewFullFaker() *Ethash + func (ethash *Ethash) APIs(chain consensus.ChainHeaderReader) []rpc.API + func (ethash *Ethash) Author(header *types.Header) (common.Address, error) + func (ethash *Ethash) CalcDifficulty(chain consensus.ChainHeaderReader, time uint64, parent *types.Header) *big.Int + func (ethash *Ethash) Close() error + func (ethash *Ethash) Finalize(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) + func (ethash *Ethash) FinalizeAndAssemble(chain consensus.ChainHeaderReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error) + func (ethash *Ethash) Prepare(chain consensus.ChainHeaderReader, header *types.Header) error + func (ethash *Ethash) Seal(chain consensus.ChainHeaderReader, block *types.Block, ...) error + func (ethash *Ethash) SealHash(header *types.Header) (hash common.Hash) + func (ethash *Ethash) VerifyHeader(chain consensus.ChainHeaderReader, header *types.Header) error + func (ethash *Ethash) VerifyHeaders(chain consensus.ChainHeaderReader, headers []*types.Header) (chan<- struct{}, <-chan error) + func (ethash *Ethash) VerifyUncles(chain consensus.ChainReader, block *types.Block) error