Skip to content
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

Update engine_api to latest version #4223

Merged
merged 8 commits into from
Apr 27, 2023

Conversation

ethDreamer
Copy link
Member

Issue Addressed

Updated the engine_api methods to match the latest version & updated the mock_execution_layer to produce blobs and now the testing harness works properly on the deneb fork. Created tests using these changes on my overflow_lru_cache branch that uses these changes and they seem to work.

@realbigsean
Copy link
Member

Couple compile errors, but looks good otherwise!

.into();
(signed_block, Some(signed_blobs))
} else {
// idk what else to put here..
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// idk what else to put here..


#[derive(Derivative, Clone, Copy, Encode, Decode)]
#[derivative(PartialEq, Eq, Hash)]
#[ssz(struct_behaviour = "transparent")]
pub struct KzgCommitment(pub [u8; BYTES_PER_COMMITMENT]);

impl KzgCommitment {
pub fn calculate_versioned_hash(&self) -> Hash256 {
let mut versioned_hash = hash(&self.0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

any reason not to use hash_fixed?

@realbigsean realbigsean merged commit c1d47da into sigp:deneb-free-blobs Apr 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants