mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-03 09:37:38 +00:00
35 lines
653 B
Go
35 lines
653 B
Go
|
package ethashcfg
|
||
|
|
||
|
import (
|
||
|
"github.com/ledgerwatch/log/v3"
|
||
|
)
|
||
|
|
||
|
// Config are the configuration parameters of the ethash.
|
||
|
type Config struct {
|
||
|
CachesInMem int
|
||
|
CachesLockMmap bool
|
||
|
DatasetDir string
|
||
|
DatasetsInMem int
|
||
|
DatasetsOnDisk int
|
||
|
DatasetsLockMmap bool
|
||
|
PowMode Mode
|
||
|
|
||
|
// When set, notifications sent by the remote sealer will
|
||
|
// be block header JSON objects instead of work package arrays.
|
||
|
NotifyFull bool
|
||
|
|
||
|
Log log.Logger `toml:"-"`
|
||
|
}
|
||
|
|
||
|
// Mode defines the type and amount of PoW verification an ethash engine makes.
|
||
|
type Mode uint
|
||
|
|
||
|
const (
|
||
|
ModeNormal Mode = iota
|
||
|
ModeShared
|
||
|
ModeTest
|
||
|
|
||
|
ModeFake
|
||
|
ModeFullFake
|
||
|
)
|