Documentation ¶
Index ¶
- func CalcEpoch(block uint64, epochLength uint64) uint64
- func DatasetSize(epoch uint64) uint64
- func GenerateDatasetItem1024(cache []uint32, index uint32, keccak512Hasher crypto.Hasher, ...) []uint32
- func GenerateDatasetItem2048(cache []uint32, index uint32, keccak512Hasher crypto.Hasher, ...) []uint32
- func GenerateDatasetItem512(cache []uint32, index uint32, keccak512Hasher crypto.Hasher, ...) []uint32
- type LightDag
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DatasetSize ¶
datasetSize returns the size of the ethash mining dataset that belongs to a certain block number.
func GenerateDatasetItem1024 ¶
func GenerateDatasetItem2048 ¶
Types ¶
type LightDag ¶
type LightDag struct { Name string NumCaches int // Maximum number of caches to keep before eviction (only init, don't modify) DatasetParents uint32 EpochLength uint64 SeedEpochLength uint64 // ETC uses 30000 for the seed epoch length but 60000 for the rest NeedsL1 bool // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.