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 {
|
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,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue