aboutsummaryrefslogtreecommitdiffstats
path: root/ethstats
diff options
context:
space:
mode:
Diffstat (limited to 'ethstats')
-rw-r--r--ethstats/ethstats.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go
index bb03dc72b..7065d7162 100644
--- a/ethstats/ethstats.go
+++ b/ethstats/ethstats.go
@@ -193,7 +193,6 @@ func (s *Service) loop() {
}
}
close(quitCh)
- return
}()
// Loop reporting until termination
for {
@@ -379,7 +378,7 @@ func (s *Service) login(conn *websocket.Conn) error {
protocol = fmt.Sprintf("eth/%d", eth.ProtocolVersions[0])
} else {
network = fmt.Sprintf("%d", infos.Protocols["les"].(*eth.EthNodeInfo).Network)
- protocol = fmt.Sprintf("les/%d", les.ProtocolVersions[0])
+ protocol = fmt.Sprintf("les/%d", les.ClientProtocolVersions[0])
}
auth := &authMsg{
Id: s.node,