diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-13 13:53:42 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:49 +0800 |
commit | fb8fb70b0c63e400a3779d36c4986e0d4520c141 (patch) | |
tree | ade151c07084a1237f30bc374bb21d1c3918bbd2 /cmd | |
parent | 83286d09174c739dcd94709377b3adb6ad55d80b (diff) | |
download | dexon-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar.gz dexon-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar.zst dexon-fb8fb70b0c63e400a3779d36c4986e0d4520c141.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 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) |