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(en): Cache blocks in fetch_l2_block #403

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

perekopskiy
Copy link
Contributor

What ❔

  • fetch_l2_block saves blocks in cache
  • fixed log in ExternalIO:: seal_miniblock

Why ❔

Making cache client to behave traditional way, i.e. cache results got from server. This will also fix invariant that previous block is always (except for first iteration after start) kept in cache and fix sporadic panics caused by inconsistent API responses

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.

@perekopskiy perekopskiy requested a review from a team as a code owner November 3, 2023 11:46
Copy link

codecov bot commented Nov 3, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2379548) 35.85% compared to head (8a35dcb) 35.88%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #403      +/-   ##
==========================================
+ Coverage   35.85%   35.88%   +0.02%     
==========================================
  Files         519      519              
  Lines       27828    27828              
==========================================
+ Hits         9979     9986       +7     
+ Misses      17849    17842       -7     
Files Coverage Δ
core/lib/zksync_core/src/sync_layer/client.rs 43.93% <100.00%> (+0.86%) ⬆️
core/lib/zksync_core/src/sync_layer/external_io.rs 61.58% <ø> (ø)

... and 8 files with indirect coverage changes

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

@perekopskiy perekopskiy added this pull request to the merge queue Nov 3, 2023
Merged via the queue into main with commit b94c845 Nov 3, 2023
26 checks passed
@perekopskiy perekopskiy deleted the cache-fetch_l2_block-results branch November 3, 2023 12:30
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>
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.

None yet

3 participants