aboutsummaryrefslogtreecommitdiffstats
path: root/ethstats/ethstats.go
diff options
context:
space:
mode:
Diffstat (limited to 'ethstats/ethstats.go')
-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