aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-13 13:53:42 +0800
committerWei-Ning Huang <w@dexon.org>2019-04-09 13:49:52 +0800
commite9537c32c82dc7c635d749bd65c2248305badb3c (patch)
tree1358cdad61d8c0c4627049a882f79b2fd069b8ad /cmd
parent7056b1790d6923100aae9e01242f2b929183db0d (diff)
downloaddexon-e9537c32c82dc7c635d749bd65c2248305badb3c.tar
dexon-e9537c32c82dc7c635d749bd65c2248305badb3c.tar.gz
dexon-e9537c32c82dc7c635d749bd65c2248305badb3c.tar.bz2
dexon-e9537c32c82dc7c635d749bd65c2248305badb3c.tar.lz
dexon-e9537c32c82dc7c635d749bd65c2248305badb3c.tar.xz
dexon-e9537c32c82dc7c635d749bd65c2248305badb3c.tar.zst
dexon-e9537c32c82dc7c635d749bd65c2248305badb3c.zip
dex: pass p2p nodeKey to Dexon instance
Diffstat (limited to 'cmd')
-rw-r--r--cmd/utils/flags.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 0bb0cfe57..2c3b21755 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -1295,6 +1295,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)