aboutsummaryrefslogtreecommitdiffstats
path: root/ethstats
diff options
context:
space:
mode:
authorPéter Szilágyi <peterke@gmail.com>2017-05-17 03:07:27 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-05-17 03:07:27 +0800
commita2f23ca9b181fa4409fdee3076316f3127038b9b (patch)
tree4aff39e2ad7ff31562468830b7f3435188e1672c /ethstats
parente20158176d2061ff95cdf022aa7113aa7c47a98e (diff)
downloadgo-tangerine-a2f23ca9b181fa4409fdee3076316f3127038b9b.tar
go-tangerine-a2f23ca9b181fa4409fdee3076316f3127038b9b.tar.gz
go-tangerine-a2f23ca9b181fa4409fdee3076316f3127038b9b.tar.bz2
go-tangerine-a2f23ca9b181fa4409fdee3076316f3127038b9b.tar.lz
go-tangerine-a2f23ca9b181fa4409fdee3076316f3127038b9b.tar.xz
go-tangerine-a2f23ca9b181fa4409fdee3076316f3127038b9b.tar.zst
go-tangerine-a2f23ca9b181fa4409fdee3076316f3127038b9b.zip
cmd, core, eth, miner: remove txpool gas price limits (#14442)
Diffstat (limited to 'ethstats')
-rw-r--r--ethstats/ethstats.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go
index 8765da8fa..007347590 100644
--- a/ethstats/ethstats.go
+++ b/ethstats/ethstats.go
@@ -18,6 +18,7 @@
package ethstats
import (
+ "context"
"encoding/json"
"errors"
"fmt"
@@ -639,7 +640,8 @@ func (s *Service) reportStats(conn *websocket.Conn) error {
sync := s.eth.Downloader().Progress()
syncing = s.eth.BlockChain().CurrentHeader().Number.Uint64() >= sync.HighestBlock
- gasprice = int(s.eth.Miner().GasPrice().Uint64())
+ price, _ := s.eth.ApiBackend.SuggestPrice(context.Background())
+ gasprice = int(price.Uint64())
} else {
sync := s.les.Downloader().Progress()
syncing = s.les.BlockChain().CurrentHeader().Number.Uint64() >= sync.HighestBlock