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@byzantine-lab.io>2019-06-12 17:23:39 +0800
commite205d3e8dbc0e6e8878dd184afcfee931260a11f (patch)
tree45b4ac223f7babbcdc5a45aa3ecbf3c93091a65f /cmd
parent912acafdcb9cba8c8036e8ae96b6b48c2c885238 (diff)
downloadgo-tangerine-e205d3e8dbc0e6e8878dd184afcfee931260a11f.tar
go-tangerine-e205d3e8dbc0e6e8878dd184afcfee931260a11f.tar.gz
go-tangerine-e205d3e8dbc0e6e8878dd184afcfee931260a11f.tar.bz2
go-tangerine-e205d3e8dbc0e6e8878dd184afcfee931260a11f.tar.lz
go-tangerine-e205d3e8dbc0e6e8878dd184afcfee931260a11f.tar.xz
go-tangerine-e205d3e8dbc0e6e8878dd184afcfee931260a11f.tar.zst
go-tangerine-e205d3e8dbc0e6e8878dd184afcfee931260a11f.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)