primitives: rm alloy Header reexport (#12515)

This commit is contained in:
Thomas Coratger
2024-11-13 17:41:25 +01:00
committed by GitHub
parent e6f3191c62
commit 001f3899fd
134 changed files with 493 additions and 439 deletions

View File

@ -1,6 +1,6 @@
//! Generators for different data structures like block headers, block bodies and ranges of those.
use alloy_consensus::{Transaction as _, TxLegacy};
use alloy_consensus::{Header, Transaction as _, TxLegacy};
use alloy_eips::eip4895::{Withdrawal, Withdrawals};
use alloy_primitives::{Address, BlockNumber, Bytes, TxKind, B256, U256};
pub use rand::Rng;
@ -8,7 +8,7 @@ use rand::{
distributions::uniform::SampleRange, rngs::StdRng, seq::SliceRandom, thread_rng, SeedableRng,
};
use reth_primitives::{
proofs, sign_message, Account, BlockBody, Header, Log, Receipt, SealedBlock, SealedHeader,
proofs, sign_message, Account, BlockBody, Log, Receipt, SealedBlock, SealedHeader,
StorageEntry, Transaction, TransactionSigned,
};
use secp256k1::{Keypair, Secp256k1};
@ -99,7 +99,7 @@ pub fn random_header_range<R: Rng>(
///
/// The header is assumed to not be correct if validated.
pub fn random_header<R: Rng>(rng: &mut R, number: u64, parent: Option<B256>) -> SealedHeader {
let header = reth_primitives::Header {
let header = alloy_consensus::Header {
number,
nonce: rng.gen(),
difficulty: U256::from(rng.gen::<u32>()),