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>2018-12-19 20:54:27 +0800
commit84139966773695c82170d784cdbc4c1e35687a6a (patch)
treeb9f5a9b28edc74b81f3a7715f4449cffda08604a /node/service.go
parent1f22b1b5be0afc50b96f9ebcf4566cb7038ad3e1 (diff)
downloaddexon-84139966773695c82170d784cdbc4c1e35687a6a.tar
dexon-84139966773695c82170d784cdbc4c1e35687a6a.tar.gz
dexon-84139966773695c82170d784cdbc4c1e35687a6a.tar.bz2
dexon-84139966773695c82170d784cdbc4c1e35687a6a.tar.lz
dexon-84139966773695c82170d784cdbc4c1e35687a6a.tar.xz
dexon-84139966773695c82170d784cdbc4c1e35687a6a.tar.zst
dexon-84139966773695c82170d784cdbc4c1e35687a6a.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