Skip to content

Commit 554b928

Browse files
committed
move example cmd
Signed-off-by: Gyuho Lee <[email protected]>
1 parent e9e1d67 commit 554b928

File tree

1 file changed

+34
-29
lines changed
  • avalancheup-aws/src/apply

1 file changed

+34
-29
lines changed

avalancheup-aws/src/apply/mod.rs

Lines changed: 34 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2225,6 +2225,40 @@ cat /tmp/{node_id}.crt
22252225
}
22262226
}
22272227

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+
22282262
//
22292263
//
22302264
//
@@ -2324,35 +2358,6 @@ cat /tmp/{node_id}.crt
23242358
ResetColor
23252359
)?;
23262360

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-
23562361
println!("\n# EXAMPLE: install subnet-evm in all nodes (including adding all nodes as primary network validators, works for any VM)");
23572362
let region_to_ssm_doc_name = serde_json::to_string(&region_to_ssm_doc_name).unwrap();
23582363
let node_id_to_region_machine_id =

0 commit comments

Comments
 (0)