mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-28 08:37:59 -05:00
fix: compile errors on standalone txpool build (#1316)
Co-authored-by: lambdaclass-user <github@lambdaclass.com>
This commit is contained in:
@@ -3,10 +3,12 @@ use reth_primitives::{
|
||||
Address, FromRecoveredTransaction, IntoRecoveredTransaction, PeerId, Transaction,
|
||||
TransactionKind, TransactionSignedEcRecovered, TxHash, H256, U256,
|
||||
};
|
||||
use serde::{Deserialize, Serialize};
|
||||
use std::{collections::HashMap, fmt, sync::Arc};
|
||||
use tokio::sync::mpsc::Receiver;
|
||||
|
||||
#[cfg(feature = "serde")]
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/// General purpose abstraction fo a transaction-pool.
|
||||
///
|
||||
/// This is intended to be used by API-consumers such as RPC that need inject new incoming,
|
||||
@@ -128,7 +130,8 @@ pub trait TransactionPool: Send + Sync + Clone {
|
||||
pub struct PropagatedTransactions(pub HashMap<TxHash, Vec<PropagateKind>>);
|
||||
|
||||
/// Represents how a transaction was propagated over the network.
|
||||
#[derive(Debug, Copy, Clone, Eq, PartialEq, Serialize, Deserialize)]
|
||||
#[derive(Debug, Copy, Clone, Eq, PartialEq)]
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
pub enum PropagateKind {
|
||||
/// The full transaction object was sent to the peer.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user