forked from matter-labs/zksync-era
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(commitment): Commitment component (matter-labs#1024)
## What ❔ - Adding new component that calculate commitment for L1 batches. - Metadata calculator now only calculates things that require tree, i.e. root hash and merkle paths in case full tree mode is on. - Soft removal of some `l1_batches` columns: `parent_hash`, `l2_l1_compressed_messages`, `compressed_write_logs`, `compressed_contracts`. - Fixed field `factory_deps` of `L1BatchWithMetadata`, it's renamed to `raw_published_factory_deps`, now it represents all published bytecodes for pre-boojum batches and published uncompressed bytecodes for post-boojum batches (compressed bytecodes are published as a part of long L2 to L1 messages). ## Why ❔ - To follow the single responsibility principle - To improve the performance of full tree which directly affects EN performance ## Checklist <!-- Check your PR fulfills the following items. --> <!-- For draft PRs check the boxes as you complete them. --> - [x] PR title corresponds to the body of PR (we generate changelog entries from PRs). - [x] 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`. - [x] Spellcheck has been run via `zk spellcheck`. - [x] Linkcheck has been run via `zk linkcheck`.
- Loading branch information
1 parent
9b21d7f
commit 60305ba
Showing
63 changed files
with
3,559 additions
and
2,251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
...lib/dal/.sqlx/query-25646383ecacf72e3f63b5c93a57a66d1e38fb6ca706c2affd4607d77be38de9.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
74 changes: 25 additions & 49 deletions
74
...594a00a78e400dc44fd3b2634529278ab38c.json → ...45f005141b01eac26946251bba68e9276acf.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 16 additions & 0 deletions
16
...lib/dal/.sqlx/query-307f15e00a97440868189f25e4487ed365c0369f94bc457cb162a5c876a123c7.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
16 changes: 0 additions & 16 deletions
16
...lib/dal/.sqlx/query-322d919ff1ef4675623a58af2b0e9ebdda648667d48d6b27ddf155f2fe01d77a.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.