From ef50e01c5ef270d628afc943e2e4fa4cff1a73b3 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 22 Sep 2016 02:24:03 +0200 Subject: swarm/api: add bzz prefix to swarm directory --- swarm/api/config.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'swarm/api/config.go') 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 -- cgit v1.2.3