mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
primitives: rm alloy Header reexport (#12515)
This commit is contained in:
@ -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>()),
|
||||
|
||||
Reference in New Issue
Block a user