aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
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 21:32:49 +0800
commitfb8fb70b0c63e400a3779d36c4986e0d4520c141 (patch)
treeade151c07084a1237f30bc374bb21d1c3918bbd2 /cmd/utils
parent83286d09174c739dcd94709377b3adb6ad55d80b (diff)
downloadgo-tangerine-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar
go-tangerine-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar.gz
go-tangerine-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar.bz2
go-tangerine-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar.lz
go-tangerine-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar.xz
go-tangerine-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar.zst
go-tangerine-fb8fb70b0c63e400a3779d36c4986e0d4520c141.zip
dex: pass p2p nodeKey to Dexon instance
Diffstat (limited to 'cmd/utils')
-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)