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: add arbitrary for block #1797

Merged
merged 2 commits into from
Dec 14, 2024
Merged

chore: add arbitrary for block #1797

merged 2 commits into from
Dec 14, 2024

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented Dec 13, 2024

ported from reth

@mattsse mattsse enabled auto-merge (squash) December 13, 2024 18:37
(0..100).map(|_| T::arbitrary(u)).collect::<arbitrary::Result<Vec<_>>>()?;

// then generate up to 2 ommers
let ommers = (0..2).map(|_| Header::arbitrary(u)).collect::<arbitrary::Result<Vec<_>>>()?;
Copy link
Member

Choose a reason for hiding this comment

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

wouldn't this always generate exactly 2 ommers?

Copy link
Member Author

Choose a reason for hiding this comment

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

actually yes, copy pasted this from reth, fixing

@mattsse mattsse requested a review from klkvr December 13, 2024 18:58
@mattsse mattsse merged commit 28ad3f7 into main Dec 14, 2024
26 checks passed
@mattsse mattsse deleted the matt/add-arbitrary-for-block branch December 14, 2024 13:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants