-
Notifications
You must be signed in to change notification settings - Fork 278
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
Add BlindBlockUtil for EIP-4844 #6532
Conversation
ethereum/spec/src/test/java/tech/pegasys/teku/spec/logic/common/util/BlindBlockUtilTest.java
Fixed
Show fixed
Hide fixed
} | ||
|
||
@Override | ||
public SignedBeaconBlock blind(final SignedBeaconBlock signedUnblindedBock) { |
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.
Any reason we can't just use SignedBeaconBlock.blind
method here?
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.
Nice question. Will check why it's not called also in Bellatrix, I've followed
As I removed most blind duplicated code I'm not sure we still need 3 classes there, but at least it checks that correct Schema definition is passed in |
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.
LGTM, just two nits
.getOptionalExecutionPayloadHeader() | ||
.orElseThrow() | ||
.isHeaderOfDefaultPayload()) { | ||
// Terminal block not reached, provide default payload |
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.
youre providing a random block, so you'll never fall in this code path so you can leave only the code in the else
|
||
@TestTemplate | ||
void shouldBlindAndUnblindBlock(final SpecContext specContext) { | ||
final SignedBeaconBlock signedBeaconBlock = dataStructureUtil.randomSignedBeaconBlock(); |
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.
CodeQL is actually right :)
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.
fixed
PR Description
Part of #6440:
BlindBlockUtilEip4844
Fixed Issue(s)
Documentation
doc-change-required
label to this PR if updates are required.Changelog