-
Notifications
You must be signed in to change notification settings - Fork 129
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
Revert "chore(types): Remove NewFromSSZ" #1909
Conversation
This reverts commit 1ab3392.
Caution Review failedThe pull request is closed. WalkthroughThe recent changes enhance the handling of execution payloads and beacon blocks within the KVStore and related structures. Key modifications include improved error handling, the introduction of new methods for creating instances from SSZ data, and better management of codec types. These adjustments streamline the control flow, ensuring that the system is more robust and maintainable while facilitating compatibility with evolving data formats. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant KVStore
participant PayloadHeader
User->>KVStore: Request latest execution payload header
KVStore->>PayloadHeader: Retrieve latest version
PayloadHeader-->>KVStore: Return header and version
KVStore-->>User: Return execution payload header
User->>KVStore: Set latest execution payload header
KVStore->>PayloadHeader: Set version and update active fork
PayloadHeader-->>KVStore: Confirm set
KVStore-->>User: Confirm header set
TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1909 +/- ##
==========================================
+ Coverage 21.51% 21.53% +0.01%
==========================================
Files 349 349
Lines 15914 15954 +40
Branches 21 21
==========================================
+ Hits 3424 3435 +11
- Misses 12374 12403 +29
Partials 116 116
|
Reverts #1898
Summary by CodeRabbit
New Features
GetLatestExecutionPayloadHeader
andSetLatestExecutionPayloadHeader
methods.BeaconBlock
andExecutionPayloadHeader
instances directly from SSZ serialized data.Bug Fixes
Prune
method ofKVStore
, allowing continued processing even when individual block removals fail.Documentation
Refactor