Versions in this module Expand all Collapse all v1 v1.0.0 Aug 18, 2018 Changes in this version + var ErrInvalidDumpMagic = errors.New("invalid dump magic") + func AccumulateRewards(config *params.ChainConfig, state *state.StateDB, header *types.Header, ...) + func CalcDifficulty(config *params.ChainConfig, time uint64, parent *types.Header) *big.Int + func MakeCache(block uint64, dir string) + func MakeDataset(block uint64, dir string) + func SeedHash(block uint64) []byte + type Ethash struct + func New(cachedir string, cachesinmem, cachesondisk int, dagdir string, ...) *Ethash + func NewFakeDelayer(delay time.Duration) *Ethash + func NewFakeFailer(fail uint64) *Ethash + func NewFaker() *Ethash + func NewFullFaker() *Ethash + func NewShared() *Ethash + func NewTester() *Ethash + func (ethash *Ethash) APIs(chain consensus.ChainReader) []rpc.API + func (ethash *Ethash) Author(header *types.Header) (common.Address, error) + func (ethash *Ethash) Finalize(chain consensus.ChainReader, header *types.Header, state *state.StateDB, ...) (*types.Block, error) + func (ethash *Ethash) Hashrate() float64 + func (ethash *Ethash) Prepare(chain consensus.ChainReader, header *types.Header) error + func (ethash *Ethash) Seal(chain consensus.ChainReader, block *types.Block, stop <-chan struct{}) (*types.Block, error) + func (ethash *Ethash) SetThreads(threads int) + func (ethash *Ethash) Threads() int + func (ethash *Ethash) VerifyHeader(chain consensus.ChainReader, header *types.Header, seal bool) error + func (ethash *Ethash) VerifyHeaders(chain consensus.ChainReader, headers []*types.Header, seals []bool) (chan<- struct{}, <-chan error) + func (ethash *Ethash) VerifySeal(chain consensus.ChainReader, header *types.Header) error + func (ethash *Ethash) VerifyUncles(chain consensus.ChainReader, block *types.Block) error