aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api
diff options
context:
space:
mode:
authorNick Johnson <arachnid@notdot.net>2016-12-02 02:33:10 +0800
committerFelix Lange <fjl@twurst.com>2016-12-02 02:33:10 +0800
commit671fd94e256fb33761dc3b0ae2b8b6374d1d9576 (patch)
tree7aa70862752f948995491381c7353096046ddf25 /swarm/api
parent717d2f6f9e157bf6962ecadb9ffb30362c733239 (diff)
downloaddexon-671fd94e256fb33761dc3b0ae2b8b6374d1d9576.tar.gz
dexon-671fd94e256fb33761dc3b0ae2b8b6374d1d9576.tar.zst
dexon-671fd94e256fb33761dc3b0ae2b8b6374d1d9576.zip
swarm/api: Update ENS root address for Ropsten & prod (#3391)
Diffstat (limited to 'swarm/api')
-rw-r--r--swarm/api/config.go7
-rw-r--r--swarm/api/config_test.go2
2 files changed, 4 insertions, 5 deletions
diff --git a/swarm/api/config.go b/swarm/api/config.go
index f9d3575f7..14a559c75 100644
--- a/swarm/api/config.go
+++ b/swarm/api/config.go
@@ -35,9 +35,8 @@ const (
port = "8500"
)
-// by default ens root is north internal
var (
- toyNetEnsRoot = common.HexToAddress("0xd344889e0be3e9ef6c26b0f60ef66a32e83c1b69")
+ ensRootAddress = common.HexToAddress("0x112234455c3a32fd11230c42e7bccd4a84e02010")
)
// separate bzz directories
@@ -82,7 +81,7 @@ func NewConfig(path string, contract common.Address, prvKey *ecdsa.PrivateKey, n
Swap: swap.DefaultSwapParams(contract, prvKey),
PublicKey: pubkeyhex,
BzzKey: keyhex,
- EnsRoot: toyNetEnsRoot,
+ EnsRoot: ensRootAddress,
NetworkId: networkId,
}
data, err = ioutil.ReadFile(confpath)
@@ -113,7 +112,7 @@ func NewConfig(path string, contract common.Address, prvKey *ecdsa.PrivateKey, n
self.Swap.SetKey(prvKey)
if (self.EnsRoot == common.Address{}) {
- self.EnsRoot = toyNetEnsRoot
+ self.EnsRoot = ensRootAddress
}
return
diff --git a/swarm/api/config_test.go b/swarm/api/config_test.go
index 39ac2d067..2f40098a3 100644
--- a/swarm/api/config_test.go
+++ b/swarm/api/config_test.go
@@ -83,7 +83,7 @@ var (
"Port": "8500",
"PublicKey": "0x045f5cfd26692e48d0017d380349bcf50982488bc11b5145f3ddf88b24924299048450542d43527fbe29a5cb32f38d62755393ac002e6bfdd71b8d7ba725ecd7a3",
"BzzKey": "0xe861964402c0b78e2d44098329b8545726f215afa737d803714a4338552fcb81",
- "EnsRoot": "0xd344889e0be3e9ef6c26b0f60ef66a32e83c1b69",
+ "EnsRoot": "0x112234455c3a32fd11230c42e7bccd4a84e02010",
"NetworkId": 323
}`
)