-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
## What ❔ Introduce strong typing for the TEE proof generation status in the Rust code only (_not_ in the database). This is a followup for: - #2474 (comment) - #2474 (comment) This PR also aligns the status types with those [implemented](https://github.com/matter-labs/zksync-era/blame/7b9e7bf249157272f2c437b86e88d382dd845618/core/lib/dal/src/proof_generation_dal.rs#L22-L23) in `proof_generation_dal.rs` (specifically the `unpicked` status introduced in #2258). ## Why ❔ Strong typing makes it easier to reason about the code and helps protect against subtle bugs. ## Checklist - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [ ] Tests for the changes have been added / updated. - [x] Documentation comments have been added / updated. - [x] Code has been formatted via `zk fmt` and `zk lint`.
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
This file was deleted.
This file was deleted.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
UPDATE tee_proof_generation_details | ||
SET status = 'ready_to_be_proven' | ||
WHERE status = 'unpicked'; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
UPDATE tee_proof_generation_details | ||
SET status = 'unpicked' | ||
WHERE status = 'ready_to_be_proven'; |