From 61c6fa7aca1c855e753da58609f4fe458204ee9a Mon Sep 17 00:00:00 2001 From: Minh Doan Date: Wed, 4 Sep 2019 13:00:39 -0700 Subject: [PATCH] change domain new for sharding structure --- internal/hmyapi/blockchain.go | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/internal/hmyapi/blockchain.go b/internal/hmyapi/blockchain.go index d32044957..653717267 100644 --- a/internal/hmyapi/blockchain.go +++ b/internal/hmyapi/blockchain.go @@ -71,37 +71,37 @@ func (s *PublicBlockChainAPI) GetShardingStructure(ctx context.Context) ([]map[s map[string]interface{}{ "current": s.b.GetShardID() == 0, "shardID": "0", - "http": "http://s0.t.hmy.io:9500", - "ws": "ws://s0.t.hmy.io:9800", + "http": "http://s0.t.hmny.io:9500", + "ws": "ws://s0.t.hmny.io:9800", }, map[string]interface{}{ "current": s.b.GetShardID() == 1, "shardID": "1", - "http": "http://s1.t.hmy.io:9500", - "ws": "ws://s1.t.hmy.io:9800", + "http": "http://s1.t.hmny.io:9500", + "ws": "ws://s1.t.hmny.io:9800", }, map[string]interface{}{ "shardID": "2", - "http": "http://s2.t.hmy.io:9500", - "ws": "ws://s2.t.hmy.io:9800", + "http": "http://s2.t.hmny.io:9500", + "ws": "ws://s2.t.hmny.io:9800", }, map[string]interface{}{ "shardID": "3", - "http": "http://s3.t.hmy.io:9500", - "ws": "ws://s3.t.hmy.io:9800", + "http": "http://s3.t.hmny.io:9500", + "ws": "ws://s3.t.hmny.io:9800", }, }, nil } else if core.ShardingSchedule.GetNetworkID() == shardingconfig.TestNet { return []map[string]interface{}{ map[string]interface{}{ "shardID": "0", - "http": "http://s0.b.hmy.io:9500", - "ws": "ws://s0.s.hmy.io:9800", + "http": "http://s0.b.hmny.io:9500", + "ws": "ws://s0.s.hmny.io:9800", }, map[string]interface{}{ "shardID": "1", - "http": "http://s1.b.hmy.io:9500", - "ws": "ws://s1.s.hmy.io:9800", + "http": "http://s1.b.hmny.io:9500", + "ws": "ws://s1.s.hmny.io:9800", }, }, nil } else {