diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-04-25 23:30:56 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-25 23:30:56 +0800 |
commit | fff16169c64a83d57d2eed35b6a2e33248c7d5eb (patch) | |
tree | 9dd32e8fb794b4950313ae2b2cd5499bb60dc4cd /ethstats/ethstats.go | |
parent | ba3bcd16a6d99bc0e58516556df8e96b730c2d60 (diff) | |
parent | e61035c5a3630e4f6fd0fb3e5346a4eed8cedc80 (diff) | |
download | go-tangerine-fff16169c64a83d57d2eed35b6a2e33248c7d5eb.tar go-tangerine-fff16169c64a83d57d2eed35b6a2e33248c7d5eb.tar.gz go-tangerine-fff16169c64a83d57d2eed35b6a2e33248c7d5eb.tar.bz2 go-tangerine-fff16169c64a83d57d2eed35b6a2e33248c7d5eb.tar.lz go-tangerine-fff16169c64a83d57d2eed35b6a2e33248c7d5eb.tar.xz go-tangerine-fff16169c64a83d57d2eed35b6a2e33248c7d5eb.tar.zst go-tangerine-fff16169c64a83d57d2eed35b6a2e33248c7d5eb.zip |
Merge pull request #14377 from karalabe/unify-network-ids
cmd, eth, les, mobile: make networkid uint64 everywhere
Diffstat (limited to 'ethstats/ethstats.go')
-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{ |