diff options
Diffstat (limited to 'node/node.go')
-rw-r--r-- | node/node.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/node.go b/node/node.go index 83b6c4c07..c4368189f 100644 --- a/node/node.go +++ b/node/node.go @@ -568,7 +568,7 @@ func (n *Node) EventMux() *event.TypeMux { // ephemeral, a memory database is returned. func (n *Node) OpenDatabase(name string, cache, handles int) (ethdb.Database, error) { if n.config.DataDir == "" { - return ethdb.NewMemDatabase() + return ethdb.NewMemDatabase(), nil } return ethdb.NewLDBDatabase(n.config.resolvePath(name), cache, handles) } |