Skip to content

Commit

Permalink
add "meta" to ethstats
Browse files Browse the repository at this point in the history
  • Loading branch information
trident86 authored and MetadiumRelease committed Sep 23, 2022
1 parent 3763ee7 commit 47ae953
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ethstats/ethstats.go
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,8 @@ func (s *Service) login(conn *connWrapper) error {
var network string
if info := infos.Protocols["eth"]; info != nil {
network = fmt.Sprintf("%d", info.(*ethproto.NodeInfo).Network)
} else if info := infos.Protocols["meta"]; info != nil {
network = fmt.Sprintf("%d", info.(*ethproto.NodeInfo).Network)
} else {
network = fmt.Sprintf("%d", infos.Protocols["les"].(*les.NodeInfo).Network)
}
Expand Down

0 comments on commit 47ae953

Please sign in to comment.