aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api/config.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-09-22 08:24:03 +0800
committerFelix Lange <fjl@twurst.com>2016-11-11 07:15:20 +0800
commitef50e01c5ef270d628afc943e2e4fa4cff1a73b3 (patch)
tree41dc34ba8a4b472ae3f682a401df32c1d5265e29 /swarm/api/config.go
parentcc0064b267aa0f9b5899e430f5e179d5229bc204 (diff)
downloaddexon-ef50e01c5ef270d628afc943e2e4fa4cff1a73b3.tar
dexon-ef50e01c5ef270d628afc943e2e4fa4cff1a73b3.tar.gz
dexon-ef50e01c5ef270d628afc943e2e4fa4cff1a73b3.tar.bz2
dexon-ef50e01c5ef270d628afc943e2e4fa4cff1a73b3.tar.lz
dexon-ef50e01c5ef270d628afc943e2e4fa4cff1a73b3.tar.xz
dexon-ef50e01c5ef270d628afc943e2e4fa4cff1a73b3.tar.zst
dexon-ef50e01c5ef270d628afc943e2e4fa4cff1a73b3.zip
swarm/api: add bzz prefix to swarm directory
Diffstat (limited to 'swarm/api/config.go')
-rw-r--r--swarm/api/config.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/swarm/api/config.go b/swarm/api/config.go
index 730755c43..c04a015ef 100644
--- a/swarm/api/config.go
+++ b/swarm/api/config.go
@@ -59,9 +59,8 @@ type Config struct {
// config is agnostic to where private key is coming from
// so managing accounts is outside swarm and left to wrappers
func NewConfig(path string, contract common.Address, prvKey *ecdsa.PrivateKey) (self *Config, err error) {
-
address := crypto.PubkeyToAddress(prvKey.PublicKey) // default beneficiary address
- dirpath := filepath.Join(path, common.Bytes2Hex(address.Bytes()))
+ dirpath := filepath.Join(path, "bzz-"+common.Bytes2Hex(address.Bytes()))
err = os.MkdirAll(dirpath, os.ModePerm)
if err != nil {
return