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

@ -7,6 +7,7 @@ use std::{
time::Duration,
};
use alloy_consensus::Header;
use alloy_eips::BlockHashOrNumber;
use alloy_rlp::Encodable;
use futures::StreamExt;
@ -17,7 +18,7 @@ use reth_eth_wire::{
use reth_network_api::test_utils::PeersHandle;
use reth_network_p2p::error::RequestResult;
use reth_network_peers::PeerId;
use reth_primitives::{BlockBody, Header};
use reth_primitives::BlockBody;
use reth_storage_api::{BlockReader, HeaderProvider, ReceiptProvider};
use tokio::sync::{mpsc::Receiver, oneshot};
use tokio_stream::wrappers::ReceiverStream;

View File

@ -563,12 +563,13 @@ mod tests {
sync::{atomic::AtomicU64, Arc},
};
use alloy_consensus::Header;
use alloy_primitives::B256;
use reth_eth_wire::{BlockBodies, Capabilities, Capability, EthVersion};
use reth_network_api::PeerRequestSender;
use reth_network_p2p::{bodies::client::BodiesClient, error::RequestError};
use reth_network_peers::PeerId;
use reth_primitives::{BlockBody, Header};
use reth_primitives::BlockBody;
use reth_provider::test_utils::NoopProvider;
use tokio::sync::mpsc;
use tokio_stream::{wrappers::ReceiverStream, StreamExt};

View File

@ -3,7 +3,7 @@
use std::sync::Arc;
use alloy_consensus::TxEip2930;
use alloy_consensus::{Header, TxEip2930};
use alloy_primitives::{Bytes, PrimitiveSignature as Signature, TxKind, U256};
use rand::Rng;
use reth_eth_wire::HeadersDirection;
@ -16,7 +16,7 @@ use reth_network_p2p::{
bodies::client::BodiesClient,
headers::client::{HeadersClient, HeadersRequest},
};
use reth_primitives::{Block, Header, Transaction, TransactionSigned};
use reth_primitives::{Block, Transaction, TransactionSigned};
use reth_provider::test_utils::MockEthProvider;
/// Returns a new [`TransactionSigned`] with some random parameters