mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
ethstats: remove miner and hashrate flags
This commit is contained in:
parent
4f248a8a8a
commit
d7f39782ce
1 changed files with 0 additions and 6 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue