aboutsummaryrefslogtreecommitdiffstats
path: root/node/node.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-11-11 13:13:16 +0800
committerGitHub <noreply@github.com>2016-11-11 13:13:16 +0800
commit9eb6f627fa9e08573580fc5915e23d332a36071b (patch)
tree711a6f608e074df8ab514f1e269dac457ddc1fdc /node/node.go
parent80ea44c485c42032aa954f2a8580e3afb4aa5339 (diff)
parent8247bccf71351812cd60179c3ef0f9d596f117c1 (diff)
downloaddexon-9eb6f627fa9e08573580fc5915e23d332a36071b.tar
dexon-9eb6f627fa9e08573580fc5915e23d332a36071b.tar.gz
dexon-9eb6f627fa9e08573580fc5915e23d332a36071b.tar.bz2
dexon-9eb6f627fa9e08573580fc5915e23d332a36071b.tar.lz
dexon-9eb6f627fa9e08573580fc5915e23d332a36071b.tar.xz
dexon-9eb6f627fa9e08573580fc5915e23d332a36071b.tar.zst
dexon-9eb6f627fa9e08573580fc5915e23d332a36071b.zip
Merge pull request #3247 from fjl/bzzd
cmd: add swarm command line tools
Diffstat (limited to 'node/node.go')
-rw-r--r--node/node.go6
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