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:
@ -38,6 +38,7 @@ revm = { workspace = true, features = ["secp256k1", "blst", "c-kzg"] }
|
||||
alloy-rlp.workspace = true
|
||||
alloy-primitives.workspace = true
|
||||
alloy-eips.workspace = true
|
||||
alloy-consensus.workspace = true
|
||||
|
||||
walkdir = "2.3.3"
|
||||
serde.workspace = true
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
//! Shared models for <https://github.com/ethereum/tests>
|
||||
|
||||
use crate::{assert::assert_equal, Error};
|
||||
use alloy_consensus::Header as RethHeader;
|
||||
use alloy_eips::eip4895::Withdrawals;
|
||||
use alloy_primitives::{keccak256, Address, Bloom, Bytes, B256, B64, U256};
|
||||
use reth_chainspec::{ChainSpec, ChainSpecBuilder};
|
||||
@ -9,9 +10,7 @@ use reth_db_api::{
|
||||
cursor::DbDupCursorRO,
|
||||
transaction::{DbTx, DbTxMut},
|
||||
};
|
||||
use reth_primitives::{
|
||||
Account as RethAccount, Bytecode, Header as RethHeader, SealedHeader, StorageEntry,
|
||||
};
|
||||
use reth_primitives::{Account as RethAccount, Bytecode, SealedHeader, StorageEntry};
|
||||
use serde::Deserialize;
|
||||
use std::{collections::BTreeMap, ops::Deref};
|
||||
|
||||
|
||||
@ -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