aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorSonic <sonic@dexon.org>2019-05-06 14:52:18 +0800
committerSonic <sonic@dexon.org>2019-05-06 14:52:18 +0800
commitfb9741ac8feeab30be376a1574cb4e935f8d5ae2 (patch)
tree31dfbf9e565b62e590280f6458baa412e26eafd6 /cmd
parente069e2a2b92afab5cb4b238848225300822e7526 (diff)
downloaddexon-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 'cmd')
-rw-r--r--cmd/faucet/faucet.go6
-rw-r--r--cmd/utils/flags.go4
2 files changed, 5 insertions, 5 deletions
diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go
index 238d6884d..5a3e539e0 100644
--- a/cmd/faucet/faucet.go
+++ b/cmd/faucet/faucet.go
@@ -50,7 +50,7 @@ import (
"github.com/dexon-foundation/dexon/eth/downloader"
"github.com/dexon-foundation/dexon/ethclient"
"github.com/dexon-foundation/dexon/ethstats"
- "github.com/dexon-foundation/dexon/les"
+ "github.com/dexon-foundation/dexon/lds"
"github.com/dexon-foundation/dexon/log"
"github.com/dexon-foundation/dexon/node"
"github.com/dexon-foundation/dexon/p2p"
@@ -236,14 +236,14 @@ func newFaucet(genesis *core.Genesis, port int, enodes []*discv5.Node, network u
cfg.SyncMode = downloader.LightSync
cfg.NetworkId = network
cfg.Genesis = genesis
- return les.New(ctx, &cfg)
+ return lds.New(ctx, &cfg)
}); err != nil {
return nil, err
}
// Assemble the ethstats monitoring and reporting service'
if stats != "" {
if err := stack.Register(func(ctx *node.ServiceContext) (node.Service, error) {
- var serv *les.LightEthereum
+ var serv *lds.LightEthereum
ctx.Service(&serv)
return ethstats.New(stats, nil, serv)
}); err != nil {
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 6ac26d1fe..9ba6c5d38 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -46,7 +46,7 @@ import (
"github.com/dexon-foundation/dexon/eth/gasprice"
"github.com/dexon-foundation/dexon/ethdb"
"github.com/dexon-foundation/dexon/ethstats"
- "github.com/dexon-foundation/dexon/les"
+ "github.com/dexon-foundation/dexon/lds"
"github.com/dexon-foundation/dexon/log"
"github.com/dexon-foundation/dexon/metrics"
"github.com/dexon-foundation/dexon/metrics/influxdb"
@@ -1398,7 +1398,7 @@ func RegisterEthStatsService(stack *node.Node, url string) {
var ethServ *eth.Ethereum
ctx.Service(&ethServ)
- var lesServ *les.LightEthereum
+ var lesServ *lds.LightEthereum
ctx.Service(&lesServ)
return ethstats.New(url, ethServ, lesServ)