aboutsummaryrefslogtreecommitdiffstats
path: root/node/service.go
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 /node/service.go
parent83286d09174c739dcd94709377b3adb6ad55d80b (diff)
downloaddexon-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar.gz
dexon-fb8fb70b0c63e400a3779d36c4986e0d4520c141.tar.zst
dexon-fb8fb70b0c63e400a3779d36c4986e0d4520c141.zip
dex: pass p2p nodeKey to Dexon instance
Diffstat (limited to 'node/service.go')
-rw-r--r--node/service.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/node/service.go b/node/service.go
index 806d73b63..7f9683362 100644
--- a/node/service.go
+++ b/node/service.go
@@ -32,8 +32,9 @@ import (
type ServiceContext struct {
config *Config
services map[reflect.Type]Service // Index of the already constructed services
- EventMux *event.TypeMux // Event multiplexer used for decoupled notifications
- AccountManager *accounts.Manager // Account manager created by the node.
+ ServerConfig *p2p.Config
+ EventMux *event.TypeMux // Event multiplexer used for decoupled notifications
+ AccountManager *accounts.Manager // Account manager created by the node.
}
// OpenDatabase opens an existing database with the given name (or creates one