From b0cf29ace4e2f85e43124c7bec59cc39c51d01f0 Mon Sep 17 00:00:00 2001 From: Muhamad Azamy Date: Thu, 14 Oct 2021 16:06:57 +0200 Subject: [PATCH] set link to testnet substrate --- pkg/environment/environment.go | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/pkg/environment/environment.go b/pkg/environment/environment.go index e55eef008..a8efed1b3 100644 --- a/pkg/environment/environment.go +++ b/pkg/environment/environment.go @@ -12,9 +12,13 @@ import ( ) const ( - // SubstrateDefaultURL default substrate url - SubstrateDefaultURL = "wss://tfchain.dev.threefold.io" - ActivationURL = "https://tfchain.dev.threefold.io/activation/activate" + // SubstrateDevURL default substrate url + SubstrateDevURL = "wss://tfchain.dev.threefold.io" + ActivationDevURL = "https://tfchain.dev.threefold.io/activation/activate" + + // SubstrateDevURL default substrate url + SubstrateTestURL = "wss://tfchain.test.threefold.io" + ActivationTestURL = "https://tfchain.test.threefold.io/activation/activate" ) // Environment holds information about running environment of a node @@ -67,8 +71,8 @@ const ( var ( envDev = Environment{ RunningMode: RunningDev, - SubstrateURL: SubstrateDefaultURL, - ActivationURL: ActivationURL, + SubstrateURL: SubstrateDevURL, + ActivationURL: ActivationDevURL, FlistURL: "redis://hub.grid.tf:9900", BinRepo: "tf-zos-v3-bins.dev", } @@ -76,8 +80,8 @@ var ( envTest = Environment{ RunningMode: RunningTest, // TODO: this should become a different substrate ? - SubstrateURL: SubstrateDefaultURL, - ActivationURL: ActivationURL, + SubstrateURL: SubstrateTestURL, + ActivationURL: ActivationTestURL, FlistURL: "redis://hub.grid.tf:9900", BinRepo: "tf-zos-v3-bins.test", } @@ -85,8 +89,8 @@ var ( // same as testnet for now. will be updated the day of the launch of production network envProd = Environment{ RunningMode: RunningMain, - SubstrateURL: SubstrateDefaultURL, - ActivationURL: ActivationURL, + SubstrateURL: SubstrateDevURL, + ActivationURL: ActivationDevURL, FlistURL: "redis://hub.grid.tf:9900", BinRepo: "tf-zos-v3-bins", }