-
Notifications
You must be signed in to change notification settings - Fork 304
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
Pass versioned hashes to EL for validation when processing block #7219
Pass versioned hashes to EL for validation when processing block #7219
Conversation
...src/test/java/tech/pegasys/teku/spec/logic/versions/deneb/block/BlockProcessorDenebTest.java
Fixed
Show fixed
Hide fixed
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.
I see that spec now contains method
verify_and_notify_new_payload
which has 1 or 2 verification pre-checks (2 for Deneb) before calling EL. I think we should add it too or I missed its implementation
assertThat(newPayloadRequest.getVersionedHashes().get()) | ||
.hasSize(3) | ||
.allMatch( | ||
versionedHash -> versionedHash.isVersion(SpecConfigDeneb.VERSIONED_HASH_VERSION_KZG)); |
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.
Maybe also add a check that hashes match?
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.
done
My understanding of the spec is that |
Sorry, my misunderstanding, rechecked spec again and you are right, everything should be done on el side |
PR Description
process_blob_kzg_commitments
in spec no longer requiredcomputeNewPayloadRequest
inBlockProcessor
and logic is different in Bellatrix and Deneb as per specFixed Issue(s)
fixes #7203
Documentation
doc-change-required
label to this PR if updates are required.Changelog