From d7f39782ce5d6c6be316caabbcfd2d83a364e251 Mon Sep 17 00:00:00 2001 From: Marius van der Wijden Date: Wed, 6 Mar 2024 11:57:12 +0100 Subject: [PATCH] ethstats: remove miner and hashrate flags --- ethstats/ethstats.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go index 00ac641a4a..2e62815a72 100644 --- a/ethstats/ethstats.go +++ b/ethstats/ethstats.go @@ -769,8 +769,6 @@ func (s *Service) reportPending(conn *connWrapper) error { type nodeStats struct { Active bool `json:"active"` Syncing bool `json:"syncing"` - Mining bool `json:"mining"` - Hashrate int `json:"hashrate"` Peers int `json:"peers"` GasPrice int `json:"gasPrice"` Uptime int `json:"uptime"` @@ -781,8 +779,6 @@ type nodeStats struct { func (s *Service) reportStats(conn *connWrapper) error { // Gather the syncing and mining infos from the local miner instance var ( - mining bool - hashrate int syncing bool gasprice int ) @@ -807,8 +803,6 @@ func (s *Service) reportStats(conn *connWrapper) error { "id": s.node, "stats": &nodeStats{ Active: true, - Mining: mining, - Hashrate: hashrate, Peers: s.server.PeerCount(), GasPrice: gasprice, Syncing: syncing,