@@ -2225,6 +2225,40 @@ cat /tmp/{node_id}.crt
2225
2225
}
2226
2226
}
2227
2227
2228
+ //
2229
+ //
2230
+ //
2231
+ //
2232
+ //
2233
+ println ! (
2234
+ "\n # EXAMPLE: ONLY add nodes as primary network validators WITHOUT subnet installation"
2235
+ ) ;
2236
+ execute ! (
2237
+ stdout( ) ,
2238
+ SetForegroundColor ( Color :: Green ) ,
2239
+ Print ( format!(
2240
+ "{exec_path} add-primary-network-validators \\
2241
+ --log-level info \\
2242
+ --chain-rpc-url {chain_rpc_url} \\
2243
+ --key {priv_key_hex} \\
2244
+ --primary-network-validate-period-in-days 16 \\
2245
+ --staking-amount-in-avax 2000 \\
2246
+ --spec-file-path {spec_file_path}
2247
+
2248
+ # or
2249
+ # --target-node-ids '{target_node_ids}'
2250
+
2251
+ " ,
2252
+ exec_path = exec_path. display( ) ,
2253
+ chain_rpc_url =
2254
+ format!( "{}://{}:{}" , scheme_for_dns, rpc_hosts[ 0 ] , port_for_dns) . to_string( ) ,
2255
+ priv_key_hex = key:: secp256k1:: TEST_KEYS [ 0 ] . to_hex( ) ,
2256
+ spec_file_path = spec_file_path,
2257
+ target_node_ids = all_node_ids. join( "," ) ,
2258
+ ) ) ,
2259
+ ResetColor
2260
+ ) ?;
2261
+
2228
2262
//
2229
2263
//
2230
2264
//
@@ -2324,35 +2358,6 @@ cat /tmp/{node_id}.crt
2324
2358
ResetColor
2325
2359
) ?;
2326
2360
2327
- println ! (
2328
- "\n # EXAMPLE: ONLY add nodes as primary network validators WITHOUT subnet installation"
2329
- ) ;
2330
- execute ! (
2331
- stdout( ) ,
2332
- SetForegroundColor ( Color :: Green ) ,
2333
- Print ( format!(
2334
- "{exec_path} add-primary-network-validators \\
2335
- --log-level info \\
2336
- --chain-rpc-url {chain_rpc_url} \\
2337
- --key {priv_key_hex} \\
2338
- --primary-network-validate-period-in-days 16 \\
2339
- --staking-amount-in-avax 2000 \\
2340
- --spec-file-path {spec_file_path}
2341
-
2342
- # or
2343
- # --target-node-ids '{target_node_ids}'
2344
-
2345
- " ,
2346
- exec_path = exec_path. display( ) ,
2347
- chain_rpc_url =
2348
- format!( "{}://{}:{}" , scheme_for_dns, rpc_hosts[ 0 ] , port_for_dns) . to_string( ) ,
2349
- priv_key_hex = key:: secp256k1:: TEST_KEYS [ 0 ] . to_hex( ) ,
2350
- spec_file_path = spec_file_path,
2351
- target_node_ids = all_node_ids. join( "," ) ,
2352
- ) ) ,
2353
- ResetColor
2354
- ) ?;
2355
-
2356
2361
println ! ( "\n # EXAMPLE: install subnet-evm in all nodes (including adding all nodes as primary network validators, works for any VM)" ) ;
2357
2362
let region_to_ssm_doc_name = serde_json:: to_string ( & region_to_ssm_doc_name) . unwrap ( ) ;
2358
2363
let node_id_to_region_machine_id =
0 commit comments