mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
chore: rm unused file (#12713)
This commit is contained in:
@ -12,7 +12,6 @@ use super::{
|
||||
NewPooledTransactionHashes68, NodeData, PooledTransactions, Receipts, Status, Transactions,
|
||||
};
|
||||
use crate::{EthNetworkPrimitives, EthVersion, NetworkPrimitives, SharedTransactions};
|
||||
|
||||
use alloy_primitives::bytes::{Buf, BufMut};
|
||||
use alloy_rlp::{length_of_length, Decodable, Encodable, Header};
|
||||
use std::{fmt::Debug, sync::Arc};
|
||||
|
||||
@ -1,9 +1,8 @@
|
||||
//! Abstraction over primitive types in network messages.
|
||||
|
||||
use std::fmt::Debug;
|
||||
|
||||
use alloy_rlp::{Decodable, Encodable};
|
||||
use reth_primitives_traits::{Block, BlockHeader};
|
||||
use std::fmt::Debug;
|
||||
|
||||
/// Abstraction over primitive types which might appear in network messages. See
|
||||
/// [`crate::EthMessage`] for more context.
|
||||
|
||||
@ -1,29 +0,0 @@
|
||||
use crate::{
|
||||
BlockBodies, BlockHeaders, NodeData, PooledTransactions, Receipts, RequestPair, Status,
|
||||
};
|
||||
|
||||
// This type is analogous to the `zebra_network::Response` type.
|
||||
/// An ethereum network response for version 66.
|
||||
#[derive(Clone, Debug, Eq, PartialEq)]
|
||||
pub enum Response {
|
||||
/// The request does not have a response.
|
||||
Nil,
|
||||
|
||||
/// The [`Status`](super::Status) message response in the eth protocol handshake.
|
||||
Status(Status),
|
||||
|
||||
/// The response to a [`Request::GetBlockHeaders`](super::Request::GetBlockHeaders) request.
|
||||
BlockHeaders(RequestPair<BlockHeaders>),
|
||||
|
||||
/// The response to a [`Request::GetBlockBodies`](super::Request::GetBlockBodies) request.
|
||||
BlockBodies(RequestPair<BlockBodies>),
|
||||
|
||||
/// The response to a [`Request::GetPooledTransactions`](super::Request::GetPooledTransactions) request.
|
||||
PooledTransactions(RequestPair<PooledTransactions>),
|
||||
|
||||
/// The response to a [`Request::GetNodeData`](super::Request::GetNodeData) request.
|
||||
NodeData(RequestPair<NodeData>),
|
||||
|
||||
/// The response to a [`Request::GetReceipts`](super::Request::GetReceipts) request.
|
||||
Receipts(RequestPair<Receipts>),
|
||||
}
|
||||
Reference in New Issue
Block a user