diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-09-21 15:06:38 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:48 +0800 |
commit | 4746deb69870907f9a18282b965ced372d1c0e98 (patch) | |
tree | 49e79ad34b315e3df8bb7555b4606e7c3e6240a5 /cmd | |
parent | f60070586cf462c2cf2de91911e5b34c8287da51 (diff) | |
download | dexon-4746deb69870907f9a18282b965ced372d1c0e98.tar.gz dexon-4746deb69870907f9a18282b965ced372d1c0e98.tar.zst dexon-4746deb69870907f9a18282b965ced372d1c0e98.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 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 }) } |