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: rewritten gossip sync to be async from block processing #711

Merged
merged 32 commits into from
Jan 13, 2024

Conversation

pompon0
Copy link
Contributor

@pompon0 pompon0 commented Dec 19, 2023

  • Simplified configs to not require genesis block.
  • Removed consensus fields from jsonrpc sync api, to prevent having gaps in miniblock quorum certificates.
  • Moved consensus fields to a separate table to make first/last entry lookup fast and reliable.
  • Migrated consensus integration to new era-consensus API: Simplified block storage era-consensus#53
  • Deduplicated code between EN consensus integration and main node consensus integration
  • Implemented support for cloning a db in tests

@pompon0 pompon0 changed the title Gprusak consensus config work [WIP] rewriting gossip sync to be async from block processing Dec 19, 2023
@pompon0 pompon0 changed the title [WIP] rewriting gossip sync to be async from block processing [refactor] rewritten gossip sync to be async from block processing Jan 3, 2024
@pompon0 pompon0 changed the title [refactor] rewritten gossip sync to be async from block processing refactor: rewritten gossip sync to be async from block processing Jan 3, 2024
@pompon0 pompon0 requested a review from slowli January 3, 2024 12:10
@pompon0 pompon0 marked this pull request as ready for review January 3, 2024 12:10
@pompon0 pompon0 requested a review from popzxc January 3, 2024 12:10
popzxc
popzxc previously approved these changes Jan 3, 2024
Copy link
Member

@popzxc popzxc left a comment

Choose a reason for hiding this comment

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

Looks good to me, but I feel that my domain knowledge isn't sufficient to grok changes fully. I'd highly recommend getting a 2nd review from someone with enough domain knowledge.

core/lib/dal/src/connection/mod.rs Outdated Show resolved Hide resolved
core/lib/dal/src/consensus_dal.rs Outdated Show resolved Hide resolved
core/lib/dal/src/models/proto/mod.proto Outdated Show resolved Hide resolved
RomanBrodetski
RomanBrodetski previously approved these changes Jan 3, 2024
Copy link
Collaborator

@RomanBrodetski RomanBrodetski left a comment

Choose a reason for hiding this comment

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

Looks good! @slowli were you also planning to review this?

core/lib/dal/src/sync_dal.rs Show resolved Hide resolved
core/lib/dal/src/consensus_dal.rs Show resolved Hide resolved
core/lib/zksync_core/src/consensus/storage.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/consensus/storage.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/consensus/storage.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/consensus/storage.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/consensus/storage.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/consensus/mod.rs Show resolved Hide resolved
core/lib/dal/src/models/proto/mod.proto Show resolved Hide resolved
core/lib/dal/src/sync_dal.rs Outdated Show resolved Hide resolved
core/lib/dal/src/models/storage_sync.rs Show resolved Hide resolved
core/lib/dal/src/models/proto/mod.proto Show resolved Hide resolved
core/lib/zksync_core/src/consensus/storage/testonly.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/consensus/testonly.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/consensus/storage.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/consensus/storage/mod.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/consensus/mod.rs Outdated Show resolved Hide resolved
core/lib/zksync_core/src/consensus/storage/mod.rs Outdated Show resolved Hide resolved
@pompon0 pompon0 requested review from slowli and popzxc January 10, 2024 14:06
Copy link
Contributor

@slowli slowli left a comment

Choose a reason for hiding this comment

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

As discussed privately, there's a couple of outstanding questions (e.g., whether it make sense to have Payload defined / validated in the DAL crate), but they can be revisited later.

Also, an operational nit: I think this PR merits a "feat" prefix; it brings quite a few improvements, and "refactor" PRs don't show up in the changelog.

@pompon0 pompon0 changed the title refactor: rewritten gossip sync to be async from block processing feat: rewritten gossip sync to be async from block processing Jan 13, 2024
@pompon0 pompon0 added this pull request to the merge queue Jan 13, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jan 13, 2024
@pompon0 pompon0 added this pull request to the merge queue Jan 13, 2024
Merged via the queue into main with commit 3af4644 Jan 13, 2024
27 checks passed
@pompon0 pompon0 deleted the gprusak-consensus-config-work branch January 13, 2024 12:07
github-merge-queue bot pushed a commit that referenced this pull request Jan 17, 2024
🤖 I have created a release *beep* *boop*
---


##
[19.2.0](core-v19.1.1...core-v19.2.0)
(2024-01-17)


### Features

* adds `zk linkcheck` to zk tool and updates zk env for `zk linkcheck`
ci usage ([#868](#868))
([d64f584](d64f584))
* **contract-verifier:** Support zkVM solc contract verification
([#854](#854))
([1ed5a95](1ed5a95))
* **en:** Make batch status updater work with pruned data
([#863](#863))
([3a07890](3a07890))
* rewritten gossip sync to be async from block processing
([#711](#711))
([3af4644](3af4644))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Deniallugo pushed a commit that referenced this pull request Jan 21, 2024
🤖 I have created a release *beep* *boop*
---

[19.2.0](core-v19.1.1...core-v19.2.0)
(2024-01-17)

* adds `zk linkcheck` to zk tool and updates zk env for `zk linkcheck`
ci usage ([#868](#868))
([d64f584](d64f584))
* **contract-verifier:** Support zkVM solc contract verification
([#854](#854))
([1ed5a95](1ed5a95))
* **en:** Make batch status updater work with pruned data
([#863](#863))
([3a07890](3a07890))
* rewritten gossip sync to be async from block processing
([#711](#711))
([3af4644](3af4644))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Deniallugo pushed a commit that referenced this pull request Jan 21, 2024
🤖 I have created a release *beep* *boop*
---

[19.2.0](core-v19.1.1...core-v19.2.0)
(2024-01-17)

* adds `zk linkcheck` to zk tool and updates zk env for `zk linkcheck`
ci usage ([#868](#868))
([d64f584](d64f584))
* **contract-verifier:** Support zkVM solc contract verification
([#854](#854))
([1ed5a95](1ed5a95))
* **en:** Make batch status updater work with pruned data
([#863](#863))
([3a07890](3a07890))
* rewritten gossip sync to be async from block processing
([#711](#711))
([3af4644](3af4644))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

4 participants