Skip to content

Commit

Permalink
Add right chain endpoints (MystenLabs#15325)
Browse files Browse the repository at this point in the history
## Description 

Use correct endpoints for snapshot downloads
  • Loading branch information
sadhansood authored Dec 12, 2023
1 parent b5a550a commit 78379be
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/sui-tool/src/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,13 @@ impl ToolCommand {
let skip_checkpoints = skip_checkpoints || formal;
let aws_endpoint = env::var("AWS_SNAPSHOT_ENDPOINT").ok().or_else(|| {
if formal && no_sign_request {
Some("https://formal-snapshot.testnet.sui.io".to_string())
if network == Chain::Mainnet {
Some("https://formal-snapshot.mainnet.sui.io".to_string())
} else if network == Chain::Testnet {
Some("https://formal-snapshot.testnet.sui.io".to_string())
} else {
None
}
} else {
None
}
Expand Down

0 comments on commit 78379be

Please sign in to comment.