Skip to content

Commit

Permalink
Testnet73 -> Testnet74
Browse files Browse the repository at this point in the history
  • Loading branch information
zbuc committed Apr 26, 2024
1 parent 2dcafde commit 4c5212b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions crates/bin/pd/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use cnidarium::{StateDelta, Storage};
use metrics_exporter_prometheus::PrometheusBuilder;
use pd::{
cli::{Opt, RootCommand, TestnetCommand},
migrate::Migration::Testnet73,
migrate::Migration::Testnet74,
testnet::{
config::{get_testnet_dir, parse_tm_address, url_has_necessary_parts},
generate::TestnetConfig,
Expand Down Expand Up @@ -432,7 +432,7 @@ async fn main() -> anyhow::Result<()> {
migrate_archive,
} => {
tracing::info!("migrating state in {}", target_directory.display());
Testnet73
Testnet74
.migrate(target_directory.clone(), genesis_start)
.await
.context("failed to upgrade state")?;
Expand Down
6 changes: 3 additions & 3 deletions crates/bin/pd/src/migrate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ pub enum Migration {
SimpleMigration,
/// Testnet-70 migration: move swap executions from the jmt to nv-storage.
Testnet70,
/// Testnet-73 migration: change liquidity positions to be ordered in descending order rather than ascending.
Testnet73,
/// Testnet-74 migration: change liquidity positions to be ordered in descending order rather than ascending.
Testnet74,
}

impl Migration {
Expand Down Expand Up @@ -193,7 +193,7 @@ impl Migration {
"successful migration!"
);
}
Migration::Testnet73 => {
Migration::Testnet74 => {
// Lookups for liquidity positions based on starting asset were ordered backwards
// and returning the positions with the least liquidity first. This migration
// needs to modify the keys stored under the JMT `dex/ra/` prefix key to reverse
Expand Down

0 comments on commit 4c5212b

Please sign in to comment.