@@ -47,8 +47,8 @@ type Environment struct {
47
47
// SINCE RELAYS FOR A NODE IS STORED ON THE CHAIN IN A LIMITED SPACE
48
48
// PLEASE MAKE SURE THAT ANY ENV HAS NO MORE THAN FOUR RELAYS CONFIGURED
49
49
RelayURL []string
50
- ActivationURL string
51
- GraphQL string
50
+ ActivationURL [] string
51
+ GraphQL [] string
52
52
KycURL string
53
53
54
54
// private vlan to join
@@ -108,32 +108,46 @@ var (
108
108
RunningMode : RunningDev ,
109
109
SubstrateURL : []string {
110
110
"wss://tfchain.dev.grid.tf/" ,
111
+ "wss://tfchain.02.dev.grid.tf" ,
111
112
},
112
113
RelayURL : []string {
113
114
"wss://relay.dev.grid.tf" ,
114
115
"wss://relay.02.dev.grid.tf" ,
115
116
},
116
- ActivationURL : "https://activation.dev.grid.tf/activation/activate" ,
117
- FlistURL : "redis://hub.grid.tf:9900" ,
118
- BinRepo : "tf-zos-v3-bins.dev" ,
119
- GraphQL : "https://graphql.dev.grid.tf/graphql" ,
120
- KycURL : "https://kyc.dev.grid.tf" ,
117
+ ActivationURL : []string {
118
+ "https://activation.dev.grid.tf/activation/activate" ,
119
+ "https://activation.02.dev.grid.tf/activation/activate" ,
120
+ },
121
+ FlistURL : "redis://hub.grid.tf:9900" ,
122
+ BinRepo : "tf-zos-v3-bins.dev" ,
123
+ GraphQL : []string {
124
+ "https://graphql.dev.grid.tf/graphql" ,
125
+ "https://graphql.02.dev.grid.tf/graphql" ,
126
+ },
127
+ KycURL : "https://kyc.dev.grid.tf" ,
121
128
}
122
129
123
130
envTest = Environment {
124
131
RunningMode : RunningTest ,
125
132
SubstrateURL : []string {
126
133
"wss://tfchain.test.grid.tf/" ,
134
+ "wss://tfchain.02.test.grid.tf" ,
127
135
},
128
136
RelayURL : []string {
129
137
"wss://relay.test.grid.tf" ,
130
138
"wss://relay.02.test.grid.tf" ,
131
139
},
132
- ActivationURL : "https://activation.test.grid.tf/activation/activate" ,
133
- FlistURL : "redis://hub.grid.tf:9900" ,
134
- BinRepo : "tf-zos-v3-bins.test" ,
135
- GraphQL : "https://graphql.test.grid.tf/graphql" ,
136
- KycURL : "https://kyc.test.grid.tf" ,
140
+ ActivationURL : []string {
141
+ "https://activation.test.grid.tf/activation/activate" ,
142
+ "https://activation.02.test.grid.tf/activation/activate" ,
143
+ },
144
+ FlistURL : "redis://hub.grid.tf:9900" ,
145
+ BinRepo : "tf-zos-v3-bins.test" ,
146
+ GraphQL : []string {
147
+ "https://graphql.test.grid.tf/graphql" ,
148
+ "https://graphql.02.test.grid.tf/graphql" ,
149
+ },
150
+ KycURL : "https://kyc.test.grid.tf" ,
137
151
}
138
152
139
153
envQA = Environment {
@@ -144,18 +158,26 @@ var (
144
158
},
145
159
RelayURL : []string {
146
160
"wss://relay.qa.grid.tf" ,
161
+ "wss://relay.02.qa.grid.tf" ,
147
162
},
148
- ActivationURL : "https://activation.qa.grid.tf/activation/activate" ,
149
- FlistURL : "redis://hub.grid.tf:9900" ,
150
- BinRepo : "tf-zos-v3-bins.qanet" ,
151
- GraphQL : "https://graphql.qa.grid.tf/graphql" ,
152
- KycURL : "https://kyc.qa.grid.tf" ,
163
+ ActivationURL : []string {
164
+ "https://activation.qa.grid.tf/activation/activate" ,
165
+ "https://activation.02.qa.grid.tf/activation/activate" ,
166
+ },
167
+ FlistURL : "redis://hub.grid.tf:9900" ,
168
+ BinRepo : "tf-zos-v3-bins.qanet" ,
169
+ GraphQL : []string {
170
+ "https://graphql.qa.grid.tf/graphql" ,
171
+ "https://graphql.02.qa.grid.tf/graphql" ,
172
+ },
173
+ KycURL : "https://kyc.qa.grid.tf" ,
153
174
}
154
175
155
176
envProd = Environment {
156
177
RunningMode : RunningMain ,
157
178
SubstrateURL : []string {
158
179
"wss://tfchain.grid.tf/" ,
180
+ "wss://tfchain.02.grid.tf" ,
159
181
"wss://02.tfchain.grid.tf/" ,
160
182
"wss://03.tfchain.grid.tf/" ,
161
183
"wss://04.tfchain.grid.tf/" ,
@@ -164,11 +186,17 @@ var (
164
186
"wss://relay.grid.tf" ,
165
187
"wss://relay.02.grid.tf" ,
166
188
},
167
- ActivationURL : "https://activation.grid.tf/activation/activate" ,
168
- FlistURL : "redis://hub.grid.tf:9900" ,
169
- BinRepo : "tf-zos-v3-bins" ,
170
- GraphQL : "https://graphql.grid.tf/graphql" ,
171
- KycURL : "https://kyc.grid.tf" ,
189
+ ActivationURL : []string {
190
+ "https://activation.grid.tf/activation/activate" ,
191
+ "https://activation.02.grid.tf/activation/activate" ,
192
+ },
193
+ FlistURL : "redis://hub.grid.tf:9900" ,
194
+ BinRepo : "tf-zos-v3-bins" ,
195
+ GraphQL : []string {
196
+ "https://graphql.grid.tf/graphql" ,
197
+ "https://graphql.02.grid.tf/graphql" ,
198
+ },
199
+ KycURL : "https://kyc.grid.tf" ,
172
200
}
173
201
)
174
202
@@ -245,7 +273,7 @@ func getEnvironmentFromParams(params kernel.Params) (Environment, error) {
245
273
246
274
if activation , ok := params .Get ("activation" ); ok {
247
275
if len (activation ) > 0 {
248
- env .ActivationURL = activation [ len ( activation ) - 1 ]
276
+ env .ActivationURL = activation
249
277
}
250
278
}
251
279
0 commit comments