-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Conversation
pompon0
commented
Dec 19, 2023
•
edited
Loading
edited
- 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
There was a problem hiding this 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.
There was a problem hiding this 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/migrations/20240103123456_move_consensus_fields_to_new_table.up.sql
Show resolved
Hide resolved
There was a problem hiding this 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.
🤖 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).
🤖 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).
🤖 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).