ethstats: remove miner and hashrate flags

This commit is contained in:
Marius van der Wijden 2024-03-06 11:57:12 +01:00
parent 4f248a8a8a
commit d7f39782ce

View file

@ -769,8 +769,6 @@ func (s *Service) reportPending(conn *connWrapper) error {
type nodeStats struct { type nodeStats struct {
Active bool `json:"active"` Active bool `json:"active"`
Syncing bool `json:"syncing"` Syncing bool `json:"syncing"`
Mining bool `json:"mining"`
Hashrate int `json:"hashrate"`
Peers int `json:"peers"` Peers int `json:"peers"`
GasPrice int `json:"gasPrice"` GasPrice int `json:"gasPrice"`
Uptime int `json:"uptime"` Uptime int `json:"uptime"`
@ -781,8 +779,6 @@ type nodeStats struct {
func (s *Service) reportStats(conn *connWrapper) error { func (s *Service) reportStats(conn *connWrapper) error {
// Gather the syncing and mining infos from the local miner instance // Gather the syncing and mining infos from the local miner instance
var ( var (
mining bool
hashrate int
syncing bool syncing bool
gasprice int gasprice int
) )
@ -807,8 +803,6 @@ func (s *Service) reportStats(conn *connWrapper) error {
"id": s.node, "id": s.node,
"stats": &nodeStats{ "stats": &nodeStats{
Active: true, Active: true,
Mining: mining,
Hashrate: hashrate,
Peers: s.server.PeerCount(), Peers: s.server.PeerCount(),
GasPrice: gasprice, GasPrice: gasprice,
Syncing: syncing, Syncing: syncing,