diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-09-21 15:06:38 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 17:20:14 +0800 |
commit | 0cd0d5f3e3deea309981baf2b73260fea861dbdc (patch) | |
tree | 091e723bfeff15e016128b19166f505aa5e8a167 /cmd | |
parent | 0a24f4cddb510a673e380f2bd2de7013b0eaebff (diff) | |
download | dexon-0cd0d5f3e3deea309981baf2b73260fea861dbdc.tar dexon-0cd0d5f3e3deea309981baf2b73260fea861dbdc.tar.gz dexon-0cd0d5f3e3deea309981baf2b73260fea861dbdc.tar.bz2 dexon-0cd0d5f3e3deea309981baf2b73260fea861dbdc.tar.lz dexon-0cd0d5f3e3deea309981baf2b73260fea861dbdc.tar.xz dexon-0cd0d5f3e3deea309981baf2b73260fea861dbdc.tar.zst dexon-0cd0d5f3e3deea309981baf2b73260fea861dbdc.zip |
dex: make geth buildable and update interface skeleton
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/utils/flags.go | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 60e45d095..2498358a7 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" @@ -1305,11 +1306,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 }) } |