diff options
author | Felix Lange <fjl@twurst.com> | 2016-11-11 00:03:24 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2016-11-11 00:47:07 +0800 |
commit | cc0064b267aa0f9b5899e430f5e179d5229bc204 (patch) | |
tree | f66402579feb66ff56e6fc979fe383360784f7c5 /node/node.go | |
parent | 1aaa5991472e5b4f379b3e5d7e3d20545f2a8099 (diff) | |
download | go-tangerine-cc0064b267aa0f9b5899e430f5e179d5229bc204.tar go-tangerine-cc0064b267aa0f9b5899e430f5e179d5229bc204.tar.gz go-tangerine-cc0064b267aa0f9b5899e430f5e179d5229bc204.tar.bz2 go-tangerine-cc0064b267aa0f9b5899e430f5e179d5229bc204.tar.lz go-tangerine-cc0064b267aa0f9b5899e430f5e179d5229bc204.tar.xz go-tangerine-cc0064b267aa0f9b5899e430f5e179d5229bc204.tar.zst go-tangerine-cc0064b267aa0f9b5899e430f5e179d5229bc204.zip |
node: add InstanceDir method
Diffstat (limited to 'node/node.go')
-rw-r--r-- | node/node.go | 6 |
1 files changed, 6 insertions, 0 deletions
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 |