aboutsummaryrefslogtreecommitdiffstats
path: root/ethstats
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2019-05-06 14:56:01 +0800
committerSonic <sonic@dexon.org>2019-05-06 14:56:01 +0800
commit71e85172ef2886a6caa75cfe94e918417ae6a629 (patch)
treedb2df5bda5a1ecde7516b68a24dc3d71e2e944f5 /ethstats
parentfb9741ac8feeab30be376a1574cb4e935f8d5ae2 (diff)
downloaddexon-71e85172ef2886a6caa75cfe94e918417ae6a629.tar
dexon-71e85172ef2886a6caa75cfe94e918417ae6a629.tar.gz
dexon-71e85172ef2886a6caa75cfe94e918417ae6a629.tar.bz2
dexon-71e85172ef2886a6caa75cfe94e918417ae6a629.tar.lz
dexon-71e85172ef2886a6caa75cfe94e918417ae6a629.tar.xz
dexon-71e85172ef2886a6caa75cfe94e918417ae6a629.tar.zst
dexon-71e85172ef2886a6caa75cfe94e918417ae6a629.zip
lds: rename LightEthereum to LightDexon
Diffstat (limited to 'ethstats')
-rw-r--r--ethstats/ethstats.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/ethstats/ethstats.go b/ethstats/ethstats.go
index e027e0fe5..f285eeca0 100644
--- a/ethstats/ethstats.go
+++ b/ethstats/ethstats.go
@@ -69,10 +69,10 @@ type blockChain interface {
// Service implements an Ethereum netstats reporting daemon that pushes local
// chain statistics up to a monitoring server.
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 *lds.LightEthereum // Light Ethereum service if monitoring a light node
- engine consensus.Engine // Consensus engine to retrieve variadic block fields
+ server *p2p.Server // Peer-to-peer server to retrieve networking infos
+ eth *eth.Ethereum // Full Ethereum service if monitoring a full node
+ les *lds.LightDexon // 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
pass string // Password to authorize access to 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 *lds.LightEthereum) (*Service, error) {
+func New(url string, ethServ *eth.Ethereum, lesServ *lds.LightDexon) (*Service, error) {
// Parse the netstats connection url
re := regexp.MustCompile("([^:@]*)(:([^@]*))?@(.+)")
parts := re.FindStringSubmatch(url)