aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-09-21 15:06:38 +0800
committerWei-Ning Huang <w@dexon.org>2019-03-07 18:45:19 +0800
commit27cb93c08c5ac360a6c3427628a7a6f8259dfa9e (patch)
tree3ec82f1aab5fc3e36872d94715cc842178f2f0ff /cmd
parentc29d94696b7ad66830477d2cdcf27007c7573efd (diff)
downloaddexon-27cb93c08c5ac360a6c3427628a7a6f8259dfa9e.tar
dexon-27cb93c08c5ac360a6c3427628a7a6f8259dfa9e.tar.gz
dexon-27cb93c08c5ac360a6c3427628a7a6f8259dfa9e.tar.bz2
dexon-27cb93c08c5ac360a6c3427628a7a6f8259dfa9e.tar.lz
dexon-27cb93c08c5ac360a6c3427628a7a6f8259dfa9e.tar.xz
dexon-27cb93c08c5ac360a6c3427628a7a6f8259dfa9e.tar.zst
dexon-27cb93c08c5ac360a6c3427628a7a6f8259dfa9e.zip
dex: make geth buildable and update interface skeleton
Diffstat (limited to 'cmd')
-rw-r--r--cmd/utils/flags.go11
1 files changed, 6 insertions, 5 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 55e84b876..d5f2f248c 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -40,6 +40,7 @@ import (
"github.com/ethereum/go-ethereum/core/vm"
"github.com/ethereum/go-ethereum/crypto"
"github.com/ethereum/go-ethereum/dashboard"
+ "github.com/ethereum/go-ethereum/dex"
"github.com/ethereum/go-ethereum/eth"
"github.com/ethereum/go-ethereum/eth/downloader"
"github.com/ethereum/go-ethereum/eth/gasprice"
@@ -1323,11 +1324,11 @@ func RegisterEthService(stack *node.Node, cfg *eth.Config) {
})
} else {
err = stack.Register(func(ctx *node.ServiceContext) (node.Service, error) {
- fullNode, err := eth.New(ctx, cfg)
- if fullNode != nil && cfg.LightServ > 0 {
- ls, _ := les.NewLesServer(fullNode, cfg)
- fullNode.AddLesServer(ls)
- }
+ fullNode, err := dex.New(ctx, cfg)
+ //if fullNode != nil && cfg.LightServ > 0 {
+ // ls, _ := les.NewLesServer(fullNode, cfg)
+ // fullNode.AddLesServer(ls)
+ //}
return fullNode, err
})
}