From 4c5212bd43a7d5382ed09dd75543297b508aab73 Mon Sep 17 00:00:00 2001 From: Chris Czub Date: Fri, 26 Apr 2024 13:43:12 -0400 Subject: [PATCH] Testnet73 -> Testnet74 --- crates/bin/pd/src/main.rs | 4 ++-- crates/bin/pd/src/migrate.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/bin/pd/src/main.rs b/crates/bin/pd/src/main.rs index 0a68708618..f94cd092e3 100644 --- a/crates/bin/pd/src/main.rs +++ b/crates/bin/pd/src/main.rs @@ -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, @@ -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")?; diff --git a/crates/bin/pd/src/migrate.rs b/crates/bin/pd/src/migrate.rs index 08aaf8370b..384f29caa6 100644 --- a/crates/bin/pd/src/migrate.rs +++ b/crates/bin/pd/src/migrate.rs @@ -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 { @@ -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