From 20d12131b5b411a35558fa13a8bc86ec66d7923a Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Fri, 21 Sep 2018 15:06:38 +0800 Subject: dex: make geth buildable and update interface skeleton --- cmd/utils/flags.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'cmd') diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 052660ba1..b75a67ca5 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" @@ -1330,11 +1331,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 }) } -- cgit v1.2.3