From 0b88144a17c73081569384766e2d2fb9a1e8cdfc Mon Sep 17 00:00:00 2001 From: AnilChinchawale Date: Fri, 7 Dec 2018 11:03:31 +0530 Subject: [PATCH] correct peer on stats --- ethstats/ethstats.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go index 7587afb4f7..29e7c52a98 100644 --- a/ethstats/ethstats.go +++ b/ethstats/ethstats.go @@ -704,7 +704,7 @@ func (s *Service) reportStats(conn *websocket.Conn) error { Active: true, Mining: mining, Hashrate: hashrate, - Peers: s.server.PeerCount(), + Peers: s.eth.GetPeer(), GasPrice: gasprice, Syncing: syncing, Uptime: 100,