From f28fc874f3d5da759d843c04fdb3c8d35f041283 Mon Sep 17 00:00:00 2001 From: Mateusz Jasiuk Date: Fri, 18 Oct 2024 18:39:14 +0200 Subject: [PATCH] chore: missing down migration script (#132) --- .../2024-10-14-073203_add_cubic_slashing_window_length/down.sql | 2 +- webserver/src/response/utils.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orm/migrations/2024-10-14-073203_add_cubic_slashing_window_length/down.sql b/orm/migrations/2024-10-14-073203_add_cubic_slashing_window_length/down.sql index d9a93fe9..cd75c83c 100644 --- a/orm/migrations/2024-10-14-073203_add_cubic_slashing_window_length/down.sql +++ b/orm/migrations/2024-10-14-073203_add_cubic_slashing_window_length/down.sql @@ -1 +1 @@ --- This file should undo anything in `up.sql` +ALTER TABLE chain_parameters DROP COLUMN cubic_slashing_window_length; \ No newline at end of file diff --git a/webserver/src/response/utils.rs b/webserver/src/response/utils.rs index bfca7141..bd6a095e 100644 --- a/webserver/src/response/utils.rs +++ b/webserver/src/response/utils.rs @@ -48,7 +48,7 @@ pub fn epoch_progress( let blocks_per_epoch = blocks_per_epoch + (EPOCH_SWITCH_BLOCKS_DELAY as i32); - // We remove 1 to the current_block so progress resets to 0 when new epoch + // We remove 1 from the current_block so progress resets to 0 when new epoch // starts let current_block = current_block - 1;