diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-12-28 21:18:34 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-12-28 21:18:34 +0800 |
commit | f7ca03ae875c7c78191bf38f6ce1cc4bbe5361c6 (patch) | |
tree | 20585ede9010cc0f7051c27e56cfd2d9a4fbfedb /ethstats | |
parent | c15d76a40f330561b2491718a143fd494a2b7b5c (diff) | |
download | dexon-f7ca03ae875c7c78191bf38f6ce1cc4bbe5361c6.tar dexon-f7ca03ae875c7c78191bf38f6ce1cc4bbe5361c6.tar.gz dexon-f7ca03ae875c7c78191bf38f6ce1cc4bbe5361c6.tar.bz2 dexon-f7ca03ae875c7c78191bf38f6ce1cc4bbe5361c6.tar.lz dexon-f7ca03ae875c7c78191bf38f6ce1cc4bbe5361c6.tar.xz dexon-f7ca03ae875c7c78191bf38f6ce1cc4bbe5361c6.tar.zst dexon-f7ca03ae875c7c78191bf38f6ce1cc4bbe5361c6.zip |
eth, les, light: expose chain config in les node info too (#15732)
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 7065d7162..1e27a1e63 100644 --- a/ethstats/ethstats.go +++ b/ethstats/ethstats.go @@ -374,10 +374,10 @@ func (s *Service) login(conn *websocket.Conn) error { var network, protocol string if info := infos.Protocols["eth"]; info != nil { - network = fmt.Sprintf("%d", info.(*eth.EthNodeInfo).Network) + network = fmt.Sprintf("%d", info.(*eth.NodeInfo).Network) protocol = fmt.Sprintf("eth/%d", eth.ProtocolVersions[0]) } else { - network = fmt.Sprintf("%d", infos.Protocols["les"].(*eth.EthNodeInfo).Network) + network = fmt.Sprintf("%d", infos.Protocols["les"].(*les.NodeInfo).Network) protocol = fmt.Sprintf("les/%d", les.ClientProtocolVersions[0]) } auth := &authMsg{ |