-
Notifications
You must be signed in to change notification settings - Fork 135
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(block-body): Add Deneb+ #1728
Conversation
WalkthroughThe recent changes introduce significant additions to the Changes
Poem
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 Configration File (
|
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.
Actionable comments posted: 0
Review details
Configuration used: CodeRabbit UI
Review profile: ASSERTIVE
Files selected for processing (6)
- mod/consensus-types/pkg/types/attestation_data.go (1 hunks)
- mod/consensus-types/pkg/types/attestation_data.ssz.go (1 hunks)
- mod/consensus-types/pkg/types/body_denebplus.go (1 hunks)
- mod/consensus-types/pkg/types/body_denebplus.ssz.go (1 hunks)
- mod/consensus-types/pkg/types/slashing_info.go (1 hunks)
- mod/consensus-types/pkg/types/slashing_info.ssz.go (1 hunks)
Additional comments not posted (18)
mod/consensus-types/pkg/types/slashing_info.go (1)
28-35
: LGTM!The
SlashingInfo
struct is well-defined with appropriate comments. Thego:generate
directive is correctly set up for generating SSZ-related code.mod/consensus-types/pkg/types/attestation_data.go (1)
30-39
: LGTM!The
AttestationData
struct is well-defined with appropriate comments. Thego:generate
directive is correctly set up for generating SSZ-related code.mod/consensus-types/pkg/types/slashing_info.ssz.go (1)
1-73
: LGTM!The generated SSZ-related code for the
SlashingInfo
struct is well-structured and consistent with the SSZ specifications.mod/consensus-types/pkg/types/attestation_data.ssz.go (1)
1-82
: LGTM!The generated SSZ-related code for the
AttestationData
struct is well-structured and consistent with the SSZ specifications.mod/consensus-types/pkg/types/body_denebplus.go (7)
54-57
: LGTM!The
IsNil
method correctly checks if theBeaconBlockBodyDenebPlus
instance is nil.
59-64
: LGTM!The
GetExecutionPayload
method correctly returns theExecutionPayload
of theBeaconBlockBodyDenebPlus
.
66-77
: LGTM!The
SetExecutionData
method correctly sets theExecutionPayload
after performing a type assertion.
79-84
: LGTM!The
GetBlobKzgCommitments
method correctly returns theBlobKzgCommitments
of theBeaconBlockBodyDenebPlus
.
86-92
: LGTM!The
SetBlobKzgCommitments
method correctly sets theBlobKzgCommitments
of theBeaconBlockBodyDenebPlus
.
94-126
: LGTM! Consider removing the commented line.The
GetTopLevelRoots
method correctly calculates and returns the top-level roots. The commented line about KZG commitments not being needed can be removed for clarity.
128-131
: LGTM!The
Length
method correctly returns the number of fields in theBeaconBlockBodyDenebPlus
struct.mod/consensus-types/pkg/types/body_denebplus.ssz.go (7)
11-14
: LGTM!The
MarshalSSZ
method correctly marshals theBeaconBlockBodyDenebPlus
object using SSZ.
16-105
: LGTM!The
MarshalSSZTo
method correctly marshals theBeaconBlockBodyDenebPlus
object to a target array.
107-239
: LGTM!The
UnmarshalSSZ
method correctly unmarshals theBeaconBlockBodyDenebPlus
object from a byte buffer.
241-264
: LGTM!The
SizeSSZ
method correctly calculates and returns the SSZ encoded size for theBeaconBlockBodyDenebPlus
object.
266-269
: LGTM!The
HashTreeRoot
method correctly hashes theBeaconBlockBodyDenebPlus
object using SSZ.
271-358
: LGTM!The
HashTreeRootWith
method correctly hashes theBeaconBlockBodyDenebPlus
object with a hasher using SSZ.
360-363
: LGTM!The
GetTree
method correctly hashes theBeaconBlockBodyDenebPlus
object and returns the proof tree using SSZ.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1728 +/- ##
==========================================
- Coverage 25.00% 24.91% -0.10%
==========================================
Files 276 277 +1
Lines 11892 11935 +43
Branches 18 18
==========================================
Hits 2974 2974
- Misses 8798 8841 +43
Partials 120 120
|
Incremental PRs.
This PR adds the body that will* be used
Summary by CodeRabbit
New Features
AttestationData
type to represent attestation data, enhancing data structure support.BeaconBlockBodyDenebPlus
type for representing beacon block bodies in the Deneb chain.SlashingInfo
type to manage slashing information for validators.Improvements