diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-13 13:53:42 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2018-12-19 20:54:27 +0800 |
commit | 84139966773695c82170d784cdbc4c1e35687a6a (patch) | |
tree | b9f5a9b28edc74b81f3a7715f4449cffda08604a /cmd | |
parent | 1f22b1b5be0afc50b96f9ebcf4566cb7038ad3e1 (diff) | |
download | dexon-84139966773695c82170d784cdbc4c1e35687a6a.tar.gz dexon-84139966773695c82170d784cdbc4c1e35687a6a.tar.zst dexon-84139966773695c82170d784cdbc4c1e35687a6a.zip |
dex: pass p2p nodeKey to Dexon instance
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/utils/flags.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index c116bdce0..8f732ad3b 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -1269,6 +1269,7 @@ func RegisterDexService(stack *node.Node, cfg *dex.Config) { //}) } else { err = stack.Register(func(ctx *node.ServiceContext) (node.Service, error) { + cfg.PrivateKey = ctx.ServerConfig.PrivateKey fullNode, err := dex.New(ctx, cfg) //if fullNode != nil && cfg.LightServ > 0 { // ls, _ := les.NewLesServer(fullNode, cfg) |