1313// limitations under the License.
1414
1515use crate :: testnet_fixtures:: {
16- get_arana_bootnodes , get_arana_initial_authorities , get_testnet_root_key,
16+ get_standalone_bootnodes , get_standalone_initial_authorities , get_testnet_root_key,
1717} ;
1818use arkworks_setups:: { common:: setup_params, Curve } ;
1919use hex_literal:: hex;
@@ -247,23 +247,23 @@ pub fn local_testnet_config() -> Result<ChainSpec, String> {
247247 ) )
248248}
249249
250- pub fn arana_live_config ( ) -> Result < ChainSpec , String > {
251- let wasm_binary = WASM_BINARY . ok_or_else ( || "Arana wasm not available" . to_string ( ) ) ?;
252- let boot_nodes = get_arana_bootnodes ( ) ;
250+ pub fn standalone_live_config ( ) -> Result < ChainSpec , String > {
251+ let wasm_binary = WASM_BINARY . ok_or_else ( || "tangle wasm not available" . to_string ( ) ) ?;
252+ let boot_nodes = get_standalone_bootnodes ( ) ;
253253 let mut properties = sc_chain_spec:: Properties :: new ( ) ;
254254 properties. insert ( "tokenSymbol" . into ( ) , "tTNT" . into ( ) ) ;
255255 properties. insert ( "tokenDecimals" . into ( ) , 18u32 . into ( ) ) ;
256256 properties. insert ( "ss58Format" . into ( ) , 42 . into ( ) ) ;
257257
258258 Ok ( ChainSpec :: from_genesis (
259- "Arana " ,
260- "arana " ,
259+ "Tangle Standalone " ,
260+ "tangle-standalone " ,
261261 ChainType :: Development ,
262262 move || {
263263 testnet_genesis (
264264 wasm_binary,
265265 // Initial PoA authorities
266- get_arana_initial_authorities ( ) ,
266+ get_standalone_initial_authorities ( ) ,
267267 // initial nominators
268268 vec ! [ ] ,
269269 // Sudo account
@@ -284,7 +284,7 @@ pub fn arana_live_config() -> Result<ChainSpec, String> {
284284 ] ,
285285 vec ! [ ] ,
286286 vec ! [ ] ,
287- get_arana_initial_authorities ( ) . iter ( ) . map ( |a| a. 0 . clone ( ) ) . collect ( ) ,
287+ get_standalone_initial_authorities ( ) . iter ( ) . map ( |a| a. 0 . clone ( ) ) . collect ( ) ,
288288 true ,
289289 )
290290 } ,
@@ -303,23 +303,23 @@ pub fn arana_live_config() -> Result<ChainSpec, String> {
303303 ) )
304304}
305305
306- pub fn arana_testnet_config ( ) -> Result < ChainSpec , String > {
307- let wasm_binary = WASM_BINARY . ok_or_else ( || "Arana wasm not available" . to_string ( ) ) ?;
308- let boot_nodes = get_arana_bootnodes ( ) ;
306+ pub fn standalone_testnet_config ( ) -> Result < ChainSpec , String > {
307+ let wasm_binary = WASM_BINARY . ok_or_else ( || "tangle wasm not available" . to_string ( ) ) ?;
308+ let boot_nodes = get_standalone_bootnodes ( ) ;
309309 let mut properties = sc_chain_spec:: Properties :: new ( ) ;
310310 properties. insert ( "tokenSymbol" . into ( ) , "tTNT" . into ( ) ) ;
311311 properties. insert ( "tokenDecimals" . into ( ) , 18u32 . into ( ) ) ;
312312 properties. insert ( "ss58Format" . into ( ) , 42 . into ( ) ) ;
313313
314314 Ok ( ChainSpec :: from_genesis (
315- "Arana Alpha " ,
316- "arana-alpha " ,
315+ "Tangle Standalone Testnet " ,
316+ "tangle-standalone-testnet " ,
317317 ChainType :: Development ,
318318 move || {
319319 testnet_genesis (
320320 wasm_binary,
321321 // Initial PoA authorities
322- get_arana_initial_authorities ( ) ,
322+ get_standalone_initial_authorities ( ) ,
323323 // initial nominators
324324 vec ! [ ] ,
325325 // Sudo account
@@ -340,7 +340,7 @@ pub fn arana_testnet_config() -> Result<ChainSpec, String> {
340340 ] ,
341341 vec ! [ ] ,
342342 vec ! [ ] ,
343- get_arana_initial_authorities ( ) . iter ( ) . map ( |a| a. 0 . clone ( ) ) . collect ( ) ,
343+ get_standalone_initial_authorities ( ) . iter ( ) . map ( |a| a. 0 . clone ( ) ) . collect ( ) ,
344344 true ,
345345 )
346346 } ,
@@ -359,23 +359,23 @@ pub fn arana_testnet_config() -> Result<ChainSpec, String> {
359359 ) )
360360}
361361
362- // same as arana_testnet but without bootnodes so that we can spinup same network locally
363- pub fn arana_local_config ( ) -> Result < ChainSpec , String > {
364- let wasm_binary = WASM_BINARY . ok_or_else ( || "Arana wasm not available" . to_string ( ) ) ?;
362+ // same as tangle_testnet but without bootnodes so that we can spinup same network locally
363+ pub fn standalone_local_config ( ) -> Result < ChainSpec , String > {
364+ let wasm_binary = WASM_BINARY . ok_or_else ( || "tangle wasm not available" . to_string ( ) ) ?;
365365 let mut properties = sc_chain_spec:: Properties :: new ( ) ;
366366 properties. insert ( "tokenSymbol" . into ( ) , "tTNT" . into ( ) ) ;
367367 properties. insert ( "tokenDecimals" . into ( ) , 18u32 . into ( ) ) ;
368368 properties. insert ( "ss58Format" . into ( ) , 42 . into ( ) ) ;
369369
370370 Ok ( ChainSpec :: from_genesis (
371- "Arana Local" ,
372- "arana -local" ,
371+ "Tangle Standalone Local" ,
372+ "tangle-standalone -local" ,
373373 ChainType :: Development ,
374374 move || {
375375 testnet_genesis (
376376 wasm_binary,
377377 // Initial PoA authorities
378- get_arana_initial_authorities ( ) ,
378+ get_standalone_initial_authorities ( ) ,
379379 vec ! [ ] ,
380380 // Sudo account
381381 get_testnet_root_key ( ) ,
@@ -395,7 +395,7 @@ pub fn arana_local_config() -> Result<ChainSpec, String> {
395395 ] ,
396396 vec ! [ ] ,
397397 vec ! [ ] ,
398- get_arana_initial_authorities ( ) . iter ( ) . map ( |a| a. 0 . clone ( ) ) . collect ( ) ,
398+ get_standalone_initial_authorities ( ) . iter ( ) . map ( |a| a. 0 . clone ( ) ) . collect ( ) ,
399399 true ,
400400 )
401401 } ,
@@ -522,8 +522,8 @@ fn testnet_genesis(
522522 grandpa : Default :: default ( ) ,
523523 dkg : DKGConfig {
524524 authorities : initial_authorities. iter ( ) . map ( |( .., x) | x. clone ( ) ) . collect :: < _ > ( ) ,
525- keygen_threshold : 5 ,
526- signature_threshold : 3 ,
525+ keygen_threshold : 3 ,
526+ signature_threshold : 2 ,
527527 authority_ids : initial_authorities. iter ( ) . map ( |( x, ..) | x. clone ( ) ) . collect :: < _ > ( ) ,
528528 } ,
529529 dkg_proposals : DKGProposalsConfig { initial_chain_ids, initial_r_ids, initial_proposers } ,
0 commit comments