|
|
@ -485,7 +485,7 @@ func New(config Config, notify []string, noverify bool) *Ethash { |
|
|
|
caches: newlru("cache", config.CachesInMem, newCache), |
|
|
|
caches: newlru("cache", config.CachesInMem, newCache), |
|
|
|
datasets: newlru("dataset", config.DatasetsInMem, newDataset), |
|
|
|
datasets: newlru("dataset", config.DatasetsInMem, newDataset), |
|
|
|
update: make(chan struct{}), |
|
|
|
update: make(chan struct{}), |
|
|
|
hashrate: metrics.NewMeter(), |
|
|
|
hashrate: metrics.NewMeterForced(), |
|
|
|
workCh: make(chan *sealTask), |
|
|
|
workCh: make(chan *sealTask), |
|
|
|
fetchWorkCh: make(chan *sealWork), |
|
|
|
fetchWorkCh: make(chan *sealWork), |
|
|
|
submitWorkCh: make(chan *mineResult), |
|
|
|
submitWorkCh: make(chan *mineResult), |
|
|
@ -505,7 +505,7 @@ func NewTester(notify []string, noverify bool) *Ethash { |
|
|
|
caches: newlru("cache", 1, newCache), |
|
|
|
caches: newlru("cache", 1, newCache), |
|
|
|
datasets: newlru("dataset", 1, newDataset), |
|
|
|
datasets: newlru("dataset", 1, newDataset), |
|
|
|
update: make(chan struct{}), |
|
|
|
update: make(chan struct{}), |
|
|
|
hashrate: metrics.NewMeter(), |
|
|
|
hashrate: metrics.NewMeterForced(), |
|
|
|
workCh: make(chan *sealTask), |
|
|
|
workCh: make(chan *sealTask), |
|
|
|
fetchWorkCh: make(chan *sealWork), |
|
|
|
fetchWorkCh: make(chan *sealWork), |
|
|
|
submitWorkCh: make(chan *mineResult), |
|
|
|
submitWorkCh: make(chan *mineResult), |
|
|
|