diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-04-25 19:31:15 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2017-04-25 19:53:50 +0800 |
commit | e61035c5a3630e4f6fd0fb3e5346a4eed8cedc80 (patch) | |
tree | 9dd32e8fb794b4950313ae2b2cd5499bb60dc4cd /ethstats | |
parent | ba3bcd16a6d99bc0e58516556df8e96b730c2d60 (diff) | |
download | go-tangerine-e61035c5a3630e4f6fd0fb3e5346a4eed8cedc80.tar go-tangerine-e61035c5a3630e4f6fd0fb3e5346a4eed8cedc80.tar.gz go-tangerine-e61035c5a3630e4f6fd0fb3e5346a4eed8cedc80.tar.bz2 go-tangerine-e61035c5a3630e4f6fd0fb3e5346a4eed8cedc80.tar.lz go-tangerine-e61035c5a3630e4f6fd0fb3e5346a4eed8cedc80.tar.xz go-tangerine-e61035c5a3630e4f6fd0fb3e5346a4eed8cedc80.tar.zst go-tangerine-e61035c5a3630e4f6fd0fb3e5346a4eed8cedc80.zip |
cmd, eth, les, mobile: make networkid uint64 everywhere
Diffstat (limited to 'ethstats')
-rw-r--r-- | ethstats/ethstats.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go index c16163ace..8765da8fa 100644 --- a/ethstats/ethstats.go +++ b/ethstats/ethstats.go @@ -323,10 +323,10 @@ func (s *Service) login(conn *websocket.Conn) error { var network, protocol string if info := infos.Protocols["eth"]; info != nil { - network = strconv.Itoa(info.(*eth.EthNodeInfo).Network) + network = fmt.Sprintf("%d", info.(*eth.EthNodeInfo).Network) protocol = fmt.Sprintf("eth/%d", eth.ProtocolVersions[0]) } else { - network = strconv.Itoa(infos.Protocols["les"].(*eth.EthNodeInfo).Network) + network = fmt.Sprintf("%d", infos.Protocols["les"].(*eth.EthNodeInfo).Network) protocol = fmt.Sprintf("les/%d", les.ProtocolVersions[0]) } auth := &authMsg{ |