diff options
Diffstat (limited to 'cmd/utils/flags.go')
-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 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 }) } |