diff options
author | Sonic <sonic@dexon.org> | 2019-05-06 14:52:18 +0800 |
---|---|---|
committer | Sonic <sonic@dexon.org> | 2019-05-06 14:52:18 +0800 |
commit | fb9741ac8feeab30be376a1574cb4e935f8d5ae2 (patch) | |
tree | 31dfbf9e565b62e590280f6458baa412e26eafd6 /ethstats | |
parent | e069e2a2b92afab5cb4b238848225300822e7526 (diff) | |
download | dexon-fb9741ac8feeab30be376a1574cb4e935f8d5ae2.tar dexon-fb9741ac8feeab30be376a1574cb4e935f8d5ae2.tar.gz dexon-fb9741ac8feeab30be376a1574cb4e935f8d5ae2.tar.bz2 dexon-fb9741ac8feeab30be376a1574cb4e935f8d5ae2.tar.lz dexon-fb9741ac8feeab30be376a1574cb4e935f8d5ae2.tar.xz dexon-fb9741ac8feeab30be376a1574cb4e935f8d5ae2.tar.zst dexon-fb9741ac8feeab30be376a1574cb4e935f8d5ae2.zip |
les: rename package to lds
Diffstat (limited to 'ethstats')
-rw-r--r-- | ethstats/ethstats.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go index aae5b9bc0..e027e0fe5 100644 --- a/ethstats/ethstats.go +++ b/ethstats/ethstats.go @@ -37,7 +37,7 @@ import ( "github.com/dexon-foundation/dexon/core/types" "github.com/dexon-foundation/dexon/eth" "github.com/dexon-foundation/dexon/event" - "github.com/dexon-foundation/dexon/les" + "github.com/dexon-foundation/dexon/lds" "github.com/dexon-foundation/dexon/log" "github.com/dexon-foundation/dexon/p2p" "github.com/dexon-foundation/dexon/rpc" @@ -71,7 +71,7 @@ type blockChain interface { type Service struct { server *p2p.Server // Peer-to-peer server to retrieve networking infos eth *eth.Ethereum // Full Ethereum service if monitoring a full node - les *les.LightEthereum // Light Ethereum service if monitoring a light node + les *lds.LightEthereum // Light Ethereum service if monitoring a light node engine consensus.Engine // Consensus engine to retrieve variadic block fields node string // Name of the node to display on the monitoring page @@ -83,7 +83,7 @@ type Service struct { } // New returns a monitoring service ready for stats reporting. -func New(url string, ethServ *eth.Ethereum, lesServ *les.LightEthereum) (*Service, error) { +func New(url string, ethServ *eth.Ethereum, lesServ *lds.LightEthereum) (*Service, error) { // Parse the netstats connection url re := regexp.MustCompile("([^:@]*)(:([^@]*))?@(.+)") parts := re.FindStringSubmatch(url) @@ -377,8 +377,8 @@ func (s *Service) login(conn *websocket.Conn) error { network = fmt.Sprintf("%d", info.(*eth.NodeInfo).Network) protocol = fmt.Sprintf("eth/%d", eth.ProtocolVersions[0]) } else { - network = fmt.Sprintf("%d", infos.Protocols["les"].(*les.NodeInfo).Network) - protocol = fmt.Sprintf("les/%d", les.ClientProtocolVersions[0]) + network = fmt.Sprintf("%d", infos.Protocols["les"].(*lds.NodeInfo).Network) + protocol = fmt.Sprintf("les/%d", lds.ClientProtocolVersions[0]) } auth := &authMsg{ ID: s.node, |