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(vm): Make calculation for pubdata a bit more percise #392

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

Deniallugo
Copy link
Contributor

@Deniallugo Deniallugo commented Nov 2, 2023

What ❔

Calculate pubdata published only once for tx

Why ❔

For boojum pubdata calculation is getting more complicated in terms of tx size and for keeping everything precise we can calculate pubdata only once

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.

Signed-off-by: Danil <deniallugo@gmail.com>
Copy link

codecov bot commented Nov 2, 2023

Codecov Report

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

Comparison is base (568bf5e) 35.85% compared to head (c56bde0) 35.83%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #392      +/-   ##
==========================================
- Coverage   35.85%   35.83%   -0.03%     
==========================================
  Files         519      519              
  Lines       27812    27830      +18     
==========================================
- Hits         9973     9972       -1     
- Misses      17839    17858      +19     
Files Coverage Δ
...e/lib/multivm/src/glue/types/vm/vm_block_result.rs 0.00% <ø> (ø)
...m/src/glue/types/vm/vm_partial_execution_result.rs 0.00% <ø> (ø)
...vm/src/interface/types/outputs/execution_result.rs 76.92% <ø> (ø)
...b/multivm/src/interface/types/outputs/statistic.rs 0.00% <ø> (ø)
...rc/versions/vm_latest/implementation/statistics.rs 10.00% <ø> (+5.00%) ⬆️
.../multivm/src/versions/vm_latest/tracers/refunds.rs 60.00% <100.00%> (+0.70%) ⬆️
...ons/vm_virtual_blocks/implementation/statistics.rs 0.00% <ø> (-10.00%) ⬇️
.../src/versions/vm_virtual_blocks/tracers/refunds.rs 48.93% <100.00%> (+0.73%) ⬆️
core/lib/types/src/fee.rs 83.33% <ø> (ø)
...ore/src/api_server/execution_sandbox/vm_metrics.rs 0.00% <ø> (ø)
... and 3 more

... and 50 files with indirect coverage changes

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

@Deniallugo Deniallugo changed the title Make calculation for pubdata a bit more percise feat(vm): Make calculation for pubdata a bit more percise Nov 2, 2023
Signed-off-by: Danil <deniallugo@gmail.com>
@Deniallugo Deniallugo marked this pull request as ready for review November 2, 2023 15:54
@Deniallugo Deniallugo requested a review from a team as a code owner November 2, 2023 15:54
@Deniallugo Deniallugo added this pull request to the merge queue Nov 2, 2023
Merged via the queue into main with commit 6d0e61c Nov 2, 2023
29 checks passed
@Deniallugo Deniallugo deleted the deniallugo-make-pubdata-calculation-more-percise branch November 2, 2023 17:00
github-merge-queue bot pushed a commit that referenced this pull request Nov 3, 2023
🤖 I have created a release *beep* *boop*
---


##
[17.1.0](core-v16.2.0...core-v17.1.0)
(2023-11-03)


### ⚠ BREAKING CHANGES

* Update to protocol version 17
([#384](#384))

### Features

* **en:** Cache blocks in `fetch_l2_block`
([#403](#403))
([b94c845](b94c845))
* Port boojum eth-sender changes
([#293](#293))
([8027326](8027326))
* **state-keeper:** Disable some seal criteria for boojum
([#390](#390))
([2343532](2343532))
* Update to protocol version 17
([#384](#384))
([ba271a5](ba271a5))
* **vm:** Make calculation for pubdata a bit more percise
([#392](#392))
([6d0e61c](6d0e61c))


### Bug Fixes

* bump zksolc from yanked version to 1.3.16
([#348](#348))
([c32b88f](c32b88f))
* **db-index:** Add missing index from FRI prover jobs
([#334](#334))
([730447f](730447f))
* **db-query:** use join instead of nested query for FRI prover
extracting
([#364](#364))
([f9cc831](f9cc831))
* **db-query:** use nested query for requeuing FRI prover jobs
([#399](#399))
([3890542](3890542))
* incorrect directory of intrinsic.rs generated.
([#332](#332))
([#336](#336))
([eefaad0](eefaad0))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: perekopskiy <53865202+perekopskiy@users.noreply.github.com>
ly0va pushed a commit that referenced this pull request Nov 3, 2023
Calculate pubdata published only once for tx

For boojum pubdata calculation is getting more complicated in terms of
tx size and for keeping everything precise we can calculate pubdata only
once

<!-- 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`.

---------

Signed-off-by: Danil <deniallugo@gmail.com>
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.

2 participants