[go: up one dir, main page]

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

remove proptest specific encoding logic #6503

Merged
merged 22 commits into from
Feb 28, 2024
Prev Previous commit
Next Next commit
feature gate imports
  • Loading branch information
Rjected committed Feb 28, 2024
commit aaeb562368d8632d9545e5b5a56c7cd2d7b6a6e2
5 changes: 3 additions & 2 deletions crates/primitives/src/header.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
use crate::{
basefee::calculate_next_block_base_fee,
block::{generate_valid_header, valid_header_strategy},
constants,
constants::{
ALLOWED_FUTURE_BLOCK_TIME_SECONDS, EMPTY_OMMER_ROOT_HASH, EMPTY_ROOT_HASH,
Expand All @@ -12,8 +11,10 @@ use crate::{
};
use alloy_rlp::{length_of_length, Decodable, Encodable};
use bytes::{BufMut, BytesMut};
#[cfg(feature = "arbitrary")]
#[cfg(any(test, feature = "arbitrary"))]
use proptest::prelude::*;
#[cfg(any(test, feature = "arbitrary"))]
use crate::block::{generate_valid_header, valid_header_strategy};
use reth_codecs::{add_arbitrary_tests, derive_arbitrary, main_codec, Compact};
use serde::{Deserialize, Serialize};
use std::{mem, ops::Deref};
Expand Down
Loading