diff options
author | gary rong <garyrong0905@gmail.com> | 2018-09-17 20:32:34 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-09-17 20:32:34 +0800 |
commit | 5d1d1a808d92440a7c0efad77fa5527e4255e596 (patch) | |
tree | 5c083f2bf130abe21f37f024018b91912446c70c /consensus/ethash | |
parent | 41ac8dd803b646b5fa92354a983ee5df68253e2a (diff) | |
download | dexon-5d1d1a808d92440a7c0efad77fa5527e4255e596.tar.gz dexon-5d1d1a808d92440a7c0efad77fa5527e4255e596.tar.zst dexon-5d1d1a808d92440a7c0efad77fa5527e4255e596.zip |
consensus, ethdb, metrics: implement forced-meter (#17667)
Diffstat (limited to 'consensus/ethash')
-rw-r--r-- | consensus/ethash/ethash.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/consensus/ethash/ethash.go b/consensus/ethash/ethash.go index b4819ca38..d124cb1e2 100644 --- a/consensus/ethash/ethash.go +++ b/consensus/ethash/ethash.go @@ -485,7 +485,7 @@ func New(config Config, notify []string, noverify bool) *Ethash { caches: newlru("cache", config.CachesInMem, newCache), datasets: newlru("dataset", config.DatasetsInMem, newDataset), update: make(chan struct{}), - hashrate: metrics.NewMeter(), + hashrate: metrics.NewMeterForced(), workCh: make(chan *sealTask), fetchWorkCh: make(chan *sealWork), submitWorkCh: make(chan *mineResult), @@ -505,7 +505,7 @@ func NewTester(notify []string, noverify bool) *Ethash { caches: newlru("cache", 1, newCache), datasets: newlru("dataset", 1, newDataset), update: make(chan struct{}), - hashrate: metrics.NewMeter(), + hashrate: metrics.NewMeterForced(), workCh: make(chan *sealTask), fetchWorkCh: make(chan *sealWork), submitWorkCh: make(chan *mineResult), |