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

chore: use native conversions for payload to block #13608

Merged
merged 5 commits into from
Jan 2, 2025

Conversation

mattsse
Copy link
Collaborator

@mattsse mattsse commented Dec 31, 2024

unlocked now that we're using alloy's block types

@mattsse mattsse added the A-sdk Related to reth's use as a library label Dec 31, 2024
Comment on lines -114 to -120

// Non empty ommers
let block_with_ommers = transform_block(block.clone(), |mut b| {
b.body.ommers.push(random_header(&mut rng, 100, None).unseal());
b
});
assert_matches!(
Copy link
Collaborator Author

@mattsse mattsse Dec 31, 2024

Choose a reason for hiding this comment

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

I removed these, because these weren't useful because

we always enforce this

// Ensure the hash included in the payload matches the block hash
if expected_hash != sealed_block.hash() {

Copy link
Member

@Rjected Rjected left a comment

Choose a reason for hiding this comment

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

cool, makes sense

@mattsse mattsse added this pull request to the merge queue Jan 2, 2025
Merged via the queue into main with commit b69c2eb Jan 2, 2025
43 checks passed
@mattsse mattsse deleted the matt/use-native-conversions branch January 2, 2025 16:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-sdk Related to reth's use as a library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants