Documentation ¶
Overview ¶
Package ethash implements the ethash proof-of-work consensus engine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidDumpMagic = errors.New("invalid dump magic")
Functions ¶
Types ¶
type Config ¶
type Config struct { CacheDir string CachesInMem int CachesOnDisk int DatasetDir string DatasetsInMem int DatasetsOnDisk int }
Config are the configuration parameters of the ethash.
type Ethash ¶
type Ethash struct {
// contains filtered or unexported fields
}
Ethash is a consensus engine based on proof-of-work implementing the ethash algorithm.
func (*Ethash) APIs ¶
func (ethash *Ethash) APIs(chain consensus.ChainReader) []rpc.API
APIs implements consensus.Engine, returning the user facing RPC APIs. Currently that is empty.
func (*Ethash) Hashrate ¶
Hashrate implements PoW, returning the measured rate of the search invocations per second over the last minute.
func (*Ethash) StartHashrate ¶
func (ethash *Ethash) StartHashrate()
func (*Ethash) StopHashrate ¶
func (ethash *Ethash) StopHashrate()
Click to show internal directories.
Click to hide internal directories.