Skip to content

Commit

Permalink
Add todo task
Browse files Browse the repository at this point in the history
Signed-off-by: deniallugo <[email protected]>
  • Loading branch information
Deniallugo committed Jan 25, 2022
1 parent 4c90889 commit 196cab0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/bin/update_sequnce_number/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ license = "Apache-2.0"
keywords = ["blockchain", "zksync"]
categories = ["cryptography"]
publish = false # We don't want to publish our binaries.
#TODO remove it ZKS-931

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

Expand Down
2 changes: 2 additions & 0 deletions core/lib/storage/src/chain/operations_ext/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1825,6 +1825,7 @@ impl<'a, 'c> OperationsExtSchema<'a, 'c> {
Ok(())
}

// TODO ZKS-931 Remove it after migration
pub async fn min_block_for_update_sequence(&mut self) -> i64 {
let executed_txs_block = sqlx::query!(
"SELECT MIN(block_number) FROM executed_transactions WHERE sequence_number IS NULL"
Expand All @@ -1845,6 +1846,7 @@ impl<'a, 'c> OperationsExtSchema<'a, 'c> {
min(executed_txs_block, executed_pr_op_block)
}

// TODO ZKS-931 Remove it after migration
pub async fn update_sequence_number_for_blocks(
&mut self,
from_block: i64,
Expand Down

0 comments on commit 196cab0

Please sign in to comment.