aboutsummaryrefslogtreecommitdiffstats
path: root/consensus
diff options
context:
space:
mode:
authorgary rong <garyrong0905@gmail.com>2018-09-17 20:32:34 +0800
committerPéter Szilágyi <peterke@gmail.com>2018-09-17 20:32:34 +0800
commit5d1d1a808d92440a7c0efad77fa5527e4255e596 (patch)
tree5c083f2bf130abe21f37f024018b91912446c70c /consensus
parent41ac8dd803b646b5fa92354a983ee5df68253e2a (diff)
downloaddexon-5d1d1a808d92440a7c0efad77fa5527e4255e596.tar.gz
dexon-5d1d1a808d92440a7c0efad77fa5527e4255e596.tar.zst
dexon-5d1d1a808d92440a7c0efad77fa5527e4255e596.zip
consensus, ethdb, metrics: implement forced-meter (#17667)
Diffstat (limited to 'consensus')
-rw-r--r--consensus/ethash/ethash.go4
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),