From fb8fb70b0c63e400a3779d36c4986e0d4520c141 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Sat, 13 Oct 2018 13:53:42 +0800 Subject: dex: pass p2p nodeKey to Dexon instance --- cmd/utils/flags.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd') 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) -- cgit v1.2.3