From d7653beedd54e54b98c7710fbba2193663066687 Mon Sep 17 00:00:00 2001 From: Igor Mandrigin Date: Fri, 11 May 2018 09:12:50 +0200 Subject: [PATCH] Fix deduplicator being created with nil db. --- geth/node/status_node.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/geth/node/status_node.go b/geth/node/status_node.go index 12977371c..666a64aa0 100644 --- a/geth/node/status_node.go +++ b/geth/node/status_node.go @@ -91,8 +91,6 @@ func (n *StatusNode) startWithDB(config *params.NodeConfig, db *leveldb.DB, serv return err } - n.db = db - if n.config.NoDiscovery { return nil } @@ -113,6 +111,8 @@ func (n *StatusNode) Start(config *params.NodeConfig, services ...node.ServiceCo return err } + n.db = db + err = n.startWithDB(config, db, services) if err != nil { @@ -127,7 +127,7 @@ func (n *StatusNode) Start(config *params.NodeConfig, services ...node.ServiceCo } func (n *StatusNode) createNode(config *params.NodeConfig, db *leveldb.DB) (err error) { - n.gethNode, err = MakeNode(config, n.db) + n.gethNode, err = MakeNode(config, db) return err }