aboutsummaryrefslogtreecommitdiffstats
path: root/node
diff options
context:
space:
mode:
Diffstat (limited to 'node')
-rw-r--r--node/node.go1
-rw-r--r--node/service.go5
2 files changed, 4 insertions, 2 deletions
diff --git a/node/node.go b/node/node.go
index 43dba3e51..ffa9fa1b0 100644
--- a/node/node.go
+++ b/node/node.go
@@ -172,6 +172,7 @@ func (n *Node) Start() error {
ctx := &ServiceContext{
config: n.config,
services: make(map[reflect.Type]Service),
+ ServerConfig: &n.serverConfig,
EventMux: n.eventmux,
AccountManager: n.accman,
}
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