Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): adding pubdata to statekeeper and merkle tree #259

Merged
merged 27 commits into from
Oct 26, 2023

Conversation

koloz193
Copy link
Contributor

@koloz193 koloz193 commented Oct 18, 2023

What ❔

Setting the ground for bigger boojum changes. Adding boojum related fields to the data model and types. Extending state tree to have a concept of StateDiffs.

Why ❔

We want to reduce the size of the overall boojum merge, this sets the basis for more extensive changes. These changes are all meant to be non-intrusive.

Checklist

  • PR title corresponds to the body of PR (we generate changelog entries from PRs).
  • Tests for the changes have been added / updated.
  • Documentation comments have been added / updated.
  • Code has been formatted via zk fmt and zk lint.

@codecov
Copy link

codecov bot commented Oct 19, 2023

Codecov Report

Attention: 46 lines in your changes are missing coverage. Please review.

Comparison is base (3cd24c9) 35.41% compared to head (a3b4583) 35.58%.
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #259      +/-   ##
==========================================
+ Coverage   35.41%   35.58%   +0.17%     
==========================================
  Files         524      524              
  Lines       28488    28583      +95     
==========================================
+ Hits        10089    10172      +83     
- Misses      18399    18411      +12     
Files Coverage Δ
core/lib/state/src/lib.rs 66.66% <ø> (ø)
core/lib/types/src/block.rs 85.18% <ø> (-0.53%) ⬇️
core/lib/types/src/l2_to_l1_log.rs 100.00% <ø> (ø)
core/lib/zksync_core/src/genesis.rs 94.16% <ø> (-0.84%) ⬇️
...ore/lib/zksync_core/src/metadata_calculator/mod.rs 87.50% <100.00%> (-0.74%) ⬇️
.../lib/zksync_core/src/state_keeper/io/seal_logic.rs 81.78% <ø> (+0.73%) ⬆️
core/lib/dal/src/blocks_dal.rs 71.64% <66.66%> (+0.03%) ⬆️
core/lib/merkle_tree/src/domain.rs 95.65% <96.15%> (+0.80%) ⬆️
core/lib/dal/src/models/storage_block.rs 84.48% <60.00%> (-1.11%) ⬇️
core/lib/state/src/in_memory.rs 84.84% <0.00%> (-5.48%) ⬇️
... and 8 more

... and 57 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@mm-zk mm-zk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I'll add some more changes after my meetings ;-)

core/lib/dal/src/models/storage_block.rs Outdated Show resolved Hide resolved
core/lib/types/src/block.rs Show resolved Hide resolved
core/lib/types/src/l2_to_l1_log.rs Outdated Show resolved Hide resolved
core/lib/types/src/fee.rs Outdated Show resolved Hide resolved
core/lib/types/src/commitment.rs Show resolved Hide resolved
core/lib/types/src/commitment.rs Outdated Show resolved Hide resolved
core/lib/types/src/event.rs Show resolved Hide resolved
core/lib/types/src/event.rs Show resolved Hide resolved
core/lib/types/src/event.rs Outdated Show resolved Hide resolved
core/lib/merkle_tree/src/domain.rs Outdated Show resolved Hide resolved
Copy link
Collaborator

@mm-zk mm-zk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I'll add some more comments after my meetings ;-)

mm-zk
mm-zk previously requested changes Oct 19, 2023
core/lib/zksync_core/Cargo.toml Outdated Show resolved Hide resolved
core/lib/state/src/shadow_storage.rs Outdated Show resolved Hide resolved
core/lib/state/src/shadow_storage.rs Outdated Show resolved Hide resolved
core/lib/state/src/witness.rs Outdated Show resolved Hide resolved
core/lib/merkle_tree/src/domain.rs Show resolved Hide resolved
core/lib/merkle_tree/src/domain.rs Show resolved Hide resolved
core/lib/types/src/event.rs Outdated Show resolved Hide resolved
@mm-zk
Copy link
Collaborator

mm-zk commented Oct 20, 2023

from my perspective LGTM. Please update PR description (and maybe change it to real PR and not draft ;-)

@koloz193 koloz193 marked this pull request as ready for review October 20, 2023 22:00
@koloz193 koloz193 requested a review from a team as a code owner October 20, 2023 22:00
@koloz193 koloz193 requested review from mm-zk and slowli October 21, 2023 00:00
core/lib/merkle_tree/src/domain.rs Outdated Show resolved Hide resolved
core/lib/state/Cargo.toml Outdated Show resolved Hide resolved
core/lib/types/src/commitment.rs Show resolved Hide resolved
core/lib/types/src/event.rs Outdated Show resolved Hide resolved
core/lib/dal/src/blocks_dal.rs Outdated Show resolved Hide resolved
core/lib/dal/src/models/storage_block.rs Outdated Show resolved Hide resolved
core/lib/state/src/rocksdb/mod.rs Outdated Show resolved Hide resolved
core/lib/state/src/rocksdb/mod.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/Cargo.toml Outdated Show resolved Hide resolved
core/lib/types/src/fee.rs Outdated Show resolved Hide resolved
core/lib/types/src/event.rs Outdated Show resolved Hide resolved
core/lib/types/src/event.rs Outdated Show resolved Hide resolved
core/lib/types/src/event.rs Show resolved Hide resolved
core/lib/dal/src/blocks_dal.rs Outdated Show resolved Hide resolved
core/lib/state/src/lib.rs Outdated Show resolved Hide resolved
core/lib/state/src/rocksdb/mod.rs Outdated Show resolved Hide resolved
perekopskiy
perekopskiy previously approved these changes Oct 24, 2023
core/lib/dal/src/blocks_dal.rs Outdated Show resolved Hide resolved
@perekopskiy perekopskiy added this pull request to the merge queue Oct 26, 2023
Merged via the queue into main with commit 1659c84 Oct 26, 2023
25 checks passed
@perekopskiy perekopskiy deleted the zk-pubdata-statekeeper-merkletree branch October 26, 2023 13:06
github-merge-queue bot pushed a commit that referenced this pull request Oct 26, 2023
🤖 I have created a release *beep* *boop*
---


##
[16.2.0](core-v16.1.0...core-v16.2.0)
(2023-10-26)


### Features

* **basic_witness_producer_input:** Add Basic Witness Producer Input
component ([#156](#156))
([3cd24c9](3cd24c9))
* **core:** adding pubdata to statekeeper and merkle tree
([#259](#259))
([1659c84](1659c84))


### Bug Fixes

* **db:** Fix root cause of RocksDB misbehavior
([#301](#301))
([d6c30ab](d6c30ab))
* **en:** gracefully shutdown en waiting for reorg detector
([#270](#270))
([f048485](f048485))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
toni-calvin referenced this pull request in lambdaclass/zksync-era Aug 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants