From cc0064b267aa0f9b5899e430f5e179d5229bc204 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 10 Nov 2016 17:03:24 +0100 Subject: node: add InstanceDir method --- node/node.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'node/node.go') diff --git a/node/node.go b/node/node.go index 15f43fc6b..fb11696fa 100644 --- a/node/node.go +++ b/node/node.go @@ -601,10 +601,16 @@ func (n *Node) Service(service interface{}) error { } // DataDir retrieves the current datadir used by the protocol stack. +// Deprecated: No files should be stored in this directory, use InstanceDir instead. func (n *Node) DataDir() string { return n.config.DataDir } +// InstanceDir retrieves the instance directory used by the protocol stack. +func (n *Node) InstanceDir() string { + return n.config.instanceDir() +} + // AccountManager retrieves the account manager used by the protocol stack. func (n *Node) AccountManager() *accounts.Manager { return n.accman -- cgit v1.2.3